home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1994…tember: Reference Library / Dev.CD Sep 94.toast / Technical Documentation / Mac Tech Notes (DocViewer) / Overview / TN-Overview < prev   
MacBinary  |  1994-07-24  |  935.0 KB  |  [ONLN/HLX2]

open in: MacOS 8.1     |     Win98     |     DOS

browse contents    |     view JSON data     |     view as text


This file was processed as: MacBinary (archive/macBinary).

ConfidenceProgramDetectionMatch TypeSupport
10% dexvert MacBinary (archive/macBinary) fallback Supported
100% file MacBinary II, inited, Thu Jul 15 16:03:36 1993, modified Sun Jul 24 14:58:50 1994, creator 'HLX2', type 'ONLN', 932788 bytes "TN-Overview" , at 0xe3c34 24377 bytes resource default (weak)
99% file data default
100% TrID MacBinary 2 default (weak)
100% siegfried fmt/1762 MacBinary (II) default
100% lsar MacBinary default


id metadata
keyvalue
macFileType[ONLN]
macFileCreator[HLX2]



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 0b 54 4e 2d 4f 76 65 | 72 76 69 65 77 00 00 00 |..TN-Ove|rview...|
|00000010| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 4f 4e 4c 4e 48 4c 58 | 32 01 00 00 00 00 00 00 |.ONLNHLX|2.......|
|00000050| 00 00 00 00 0e 3b b4 00 | 00 5f 39 a8 6b 68 98 aa |.....;..|._9.kh..|
|00000060| 58 6a 6a 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |Xjj.....|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 11 8d 00 00 |........|........|
|00000080| 4f 56 20 31 20 2d 20 43 | 68 6f 6f 73 65 72 20 45 |OV 1 - C|hooser E|
|00000090| 6e 68 61 6e 63 65 6d 65 | 6e 74 73 0d 4f 76 65 72 |nhanceme|nts.Over|
|000000a0| 76 69 65 77 09 0d 57 72 | 69 74 74 65 6e 20 62 79 |view..Wr|itten by|
|000000b0| 3a 09 43 68 72 69 73 20 | 4b 6e 65 70 70 65 72 09 |:.Chris |Knepper.|
|000000c0| 41 75 67 75 73 74 20 31 | 39 38 38 0d 42 65 67 69 |August 1|988.Begi|
|000000d0| 6e 6e 69 6e 67 20 77 69 | 74 68 20 76 65 72 73 69 |nning wi|th versi|
|000000e0| 6f 6e 20 33 2e 32 2c 20 | 74 68 65 20 43 68 6f 6f |on 3.2, |the Choo|
|000000f0| 73 65 72 20 68 61 73 20 | 62 65 65 6e 20 65 6e 68 |ser has |been enh|
|00000100| 61 6e 63 65 64 20 74 6f | 20 70 72 6f 76 69 64 65 |anced to| provide|
|00000110| 20 73 75 70 70 6f 72 74 | 20 66 6f 72 20 61 64 64 | support| for add|
|00000120| 69 74 69 6f 6e 61 6c 20 | 63 6f 6e 74 72 6f 6c 73 |itional |controls|
|00000130| 2e 0d 41 73 20 73 74 61 | 74 65 64 20 69 6e 20 49 |..As sta|ted in I|
|00000140| 6e 73 69 64 65 20 4d 61 | 63 69 6e 74 6f 73 68 20 |nside Ma|cintosh |
|00000150| 49 56 2d 32 31 37 2c 20 | 74 68 65 20 43 68 6f 6f |IV-217, |the Choo|
|00000160| 73 65 72 20 63 6f 6d 6d | 75 6e 69 63 61 74 65 73 |ser comm|unicates|
|00000170| 20 77 69 74 68 20 64 65 | 76 69 63 65 20 70 61 63 | with de|vice pac|
|00000180| 6b 61 67 65 73 20 61 73 | 20 69 66 20 74 68 65 79 |kages as| if they|
|00000190| 20 77 65 72 65 20 74 68 | 65 20 66 6f 6c 6c 6f 77 | were th|e follow|
|000001a0| 69 6e 67 20 66 75 6e 63 | 74 69 6f 6e 3a 0d 09 46 |ing func|tion:..F|
|000001b0| 55 4e 43 54 49 4f 4e 20 | 44 65 76 69 63 65 20 28 |UNCTION |Device (|
|000001c0| 6d 65 73 73 61 67 65 2c | 20 63 61 6c 6c 65 72 3a |message,| caller:|
|000001d0| 20 49 4e 54 45 47 45 52 | 3b 0d 09 09 6f 62 6a 4e | INTEGER|;...objN|
|000001e0| 61 6d 65 2c 20 7a 6f 6e | 65 4e 61 6d 65 3a 20 53 |ame, zon|eName: S|
|000001f0| 74 72 69 6e 67 50 74 72 | 3b 0d 09 09 70 31 2c 20 |tringPtr|;...p1, |
|00000200| 70 32 3a 20 4c 4f 4e 47 | 49 4e 54 29 3a 20 4f 53 |p2: LONG|INT): OS|
|00000210| 45 72 72 3b 0d 54 68 69 | 73 20 66 75 6e 63 74 69 |Err;.Thi|s functi|
|00000220| 6f 6e 20 69 73 20 63 6f | 6e 74 61 69 6e 65 64 20 |on is co|ntained |
|00000230| 69 6e 20 74 68 65 20 64 | 65 76 69 63 65 20 70 61 |in the d|evice pa|
|00000240| 63 6b 61 67 65 d5 73 20 | 27 50 41 43 4b 27 20 2d |ckage.s |'PACK' -|
|00000250| 34 30 39 36 20 72 65 73 | 6f 75 72 63 65 2e 20 49 |4096 res|ource. I|
|00000260| 66 20 62 69 74 20 31 37 | 20 69 6e 20 74 68 65 20 |f bit 17| in the |
|00000270| 66 6c 61 67 73 20 66 69 | 65 6c 64 20 6f 66 20 74 |flags fi|eld of t|
|00000280| 68 69 73 20 27 50 41 43 | 4b 27 20 69 73 20 73 65 |his 'PAC|K' is se|
|00000290| 74 2c 20 74 68 65 20 44 | 65 76 69 63 65 20 66 75 |t, the D|evice fu|
|000002a0| 6e 63 74 69 6f 6e 20 77 | 69 6c 6c 20 72 65 63 65 |nction w|ill rece|
|000002b0| 69 76 65 20 61 6e 20 69 | 6e 69 74 69 61 6c 69 7a |ive an i|nitializ|
|000002c0| 61 74 69 6f 6e 20 6d 65 | 73 73 61 67 65 20 77 68 |ation me|ssage wh|
|000002d0| 65 6e 20 74 68 65 20 75 | 73 65 72 20 73 65 6c 65 |en the u|ser sele|
|000002e0| 63 74 73 20 74 68 61 74 | 20 64 65 76 69 63 65 20 |cts that| device |
|000002f0| 72 65 73 6f 75 72 63 65 | 20 66 69 6c 65 20 66 72 |resource| file fr|
|00000300| 6f 6d 20 74 68 65 20 43 | 68 6f 6f 73 65 72 d5 73 |om the C|hooser.s|
|00000310| 20 77 69 6e 64 6f 77 20 | d0 20 20 44 65 76 69 63 | window |. Devic|
|00000320| 65 20 77 69 6c 6c 20 62 | 65 20 63 61 6c 6c 65 64 |e will b|e called|
|00000330| 20 77 69 74 68 20 6d 65 | 73 73 61 67 65 20 3d 20 | with me|ssage = |
|00000340| 69 6e 69 74 4d 73 67 2e | 20 54 68 69 73 20 69 73 |initMsg.| This is|
|00000350| 20 74 68 65 20 66 69 72 | 73 74 20 6d 65 73 73 61 | the fir|st messa|
|00000360| 67 65 20 74 68 61 74 20 | 64 65 76 69 63 65 20 70 |ge that |device p|
|00000370| 61 63 6b 61 67 65 73 20 | 72 65 63 65 69 76 65 20 |ackages |receive |
|00000380| 61 6e 64 20 6d 61 79 20 | 62 65 20 75 73 65 64 20 |and may |be used |
|00000390| 74 6f 20 73 65 74 20 75 | 70 20 64 65 66 61 75 6c |to set u|p defaul|
|000003a0| 74 20 63 6f 6e 66 69 67 | 75 72 61 74 69 6f 6e 73 |t config|urations|
|000003b0| 2e 20 54 68 65 20 4d 50 | 57 20 61 73 73 65 6d 62 |. The MP|W assemb|
|000003c0| 6c 65 72 20 69 6e 74 65 | 72 66 61 63 65 20 66 6f |ler inte|rface fo|
|000003d0| 72 20 74 68 69 73 20 6e | 65 77 20 6d 65 73 73 61 |r this n|ew messa|
|000003e0| 67 65 20 69 73 3a 0d 09 | 69 6e 69 74 4d 73 67 20 |ge is:..|initMsg |
|000003f0| 45 51 55 20 31 31 0d 57 | 68 65 6e 20 74 68 65 20 |EQU 11.W|hen the |
|00000400| 44 65 76 69 63 65 20 66 | 75 6e 63 74 69 6f 6e 20 |Device f|unction |
|00000410| 72 65 63 65 69 76 65 73 | 20 69 6e 69 74 4d 73 67 |receives| initMsg|
|00000420| 2c 20 74 68 65 20 6f 62 | 6a 4e 61 6d 65 20 70 61 |, the ob|jName pa|
|00000430| 72 61 6d 65 74 65 72 20 | 63 6f 6e 74 61 69 6e 73 |rameter |contains|
|00000440| 20 61 20 70 6f 69 6e 74 | 65 72 20 74 6f 20 61 6e | a point|er to an|
|00000450| 20 61 72 72 61 79 20 6f | 66 20 43 6f 6e 74 72 6f | array o|f Contro|
|00000460| 6c 48 61 6e 64 6c 65 73 | 2e 20 46 6f 72 20 74 68 |lHandles|. For th|
|00000470| 69 73 20 6d 65 73 73 61 | 67 65 20 28 61 6e 64 20 |is messa|ge (and |
|00000480| 66 6f 72 20 74 68 65 20 | 62 75 74 74 6f 6e 4d 73 |for the |buttonMs|
|00000490| 67 20 64 65 73 63 72 69 | 62 65 64 20 62 65 6c 6f |g descri|bed belo|
|000004a0| 77 29 20 74 68 65 20 6f | 62 6a 4e 61 6d 65 20 70 |w) the o|bjName p|
|000004b0| 61 72 61 6d 65 74 65 72 | 20 69 73 20 61 20 70 6f |arameter| is a po|
|000004c0| 69 6e 74 65 72 20 74 6f | 20 61 20 73 74 72 75 63 |inter to| a struc|
|000004d0| 74 75 72 65 20 61 73 20 | 66 6f 6c 6c 6f 77 73 3a |ture as |follows:|
|000004e0| 20 20 69 74 20 62 65 67 | 69 6e 73 20 77 69 74 68 | it beg|ins with|
|000004f0| 20 61 20 73 69 7a 65 20 | 77 6f 72 64 20 61 6e 64 | a size |word and|
|00000500| 20 69 73 20 66 6f 6c 6c | 6f 77 65 64 20 62 79 20 | is foll|owed by |
|00000510| 61 74 20 6c 65 61 73 74 | 20 34 20 43 6f 6e 74 72 |at least| 4 Contr|
|00000520| 6f 6c 48 61 6e 64 6c 65 | 73 2e 20 54 68 65 20 73 |olHandle|s. The s|
|00000530| 69 7a 65 20 69 73 20 61 | 74 20 6c 65 61 73 74 20 |ize is a|t least |
|00000540| 31 38 20 62 79 74 65 73 | 20 28 32 20 62 79 74 65 |18 bytes| (2 byte|
|00000550| 73 20 66 6f 72 20 74 68 | 65 20 73 69 7a 65 20 77 |s for th|e size w|
|00000560| 6f 72 64 20 61 6e 64 20 | 34 20 62 79 74 65 73 20 |ord and |4 bytes |
|00000570| 65 61 63 68 20 66 6f 72 | 20 74 68 65 20 68 61 6e |each for| the han|
|00000580| 64 6c 65 73 29 2e 20 4d | 6f 72 65 20 68 61 6e 64 |dles). M|ore hand|
|00000590| 6c 65 73 20 6d 61 79 20 | 62 65 20 61 64 64 65 64 |les may |be added|
|000005a0| 20 69 6e 20 74 68 65 20 | 66 75 74 75 72 65 2e 20 | in the |future. |
|000005b0| 54 68 65 20 66 6f 75 72 | 20 43 6f 6e 74 72 6f 6c |The four| Control|
|000005c0| 48 61 6e 64 6c 65 73 20 | 74 68 61 74 20 68 61 76 |Handles |that hav|
|000005d0| 65 20 62 65 65 6e 20 64 | 65 66 69 6e 65 64 20 74 |e been d|efined t|
|000005e0| 68 75 73 20 66 61 72 20 | 61 72 65 20 74 68 65 20 |hus far |are the |
|000005f0| 6c 65 66 74 20 61 6e 64 | 20 72 69 67 68 74 20 62 |left and| right b|
|00000600| 75 74 74 6f 6e 73 20 61 | 6e 64 20 74 68 65 20 d2 |uttons a|nd the .|
|00000610| 6f 6e d3 20 61 6e 64 20 | d2 6f 66 66 d3 20 72 61 |on. and |.off. ra|
|00000620| 64 69 6f 20 62 75 74 74 | 6f 6e 73 2e 20 54 68 65 |dio butt|ons. The|
|00000630| 69 72 20 68 61 6e 64 6c | 65 73 20 61 70 70 65 61 |ir handl|es appea|
|00000640| 72 20 69 6e 20 74 68 69 | 73 20 6f 72 64 65 72 3a |r in thi|s order:|
|00000650| 0d 73 69 7a 65 20 77 6f | 72 64 0d 6c 65 66 74 20 |.size wo|rd.left |
|00000660| 43 6f 6e 74 72 6f 6c 48 | 61 6e 64 6c 65 0d 72 69 |ControlH|andle.ri|
|00000670| 67 68 74 20 43 6f 6e 74 | 72 6f 6c 48 61 6e 64 6c |ght Cont|rolHandl|
|00000680| 65 0d 6f 6e 20 43 6f 6e | 74 72 6f 6c 48 61 6e 64 |e.on Con|trolHand|
|00000690| 6c 65 0d 6f 66 66 20 43 | 6f 6e 74 72 6f 6c 48 61 |le.off C|ontrolHa|
|000006a0| 6e 64 6c 65 0d c9 3f 0d | 54 68 65 20 46 6c 61 67 |ndle..?.|The Flag|
|000006b0| 73 20 62 69 74 73 20 6f | 66 20 74 68 65 20 27 50 |s bits o|f the 'P|
|000006c0| 41 43 4b 27 20 63 6f 6e | 74 72 6f 6c 20 77 68 69 |ACK' con|trol whi|
|000006d0| 63 68 20 62 75 74 74 6f | 6e 73 20 61 72 65 20 75 |ch butto|ns are u|
|000006e0| 73 65 64 2e 20 42 69 74 | 73 20 32 36 20 61 6e 64 |sed. Bit|s 26 and|
|000006f0| 20 32 37 20 61 72 65 20 | 75 73 65 64 20 74 6f 20 | 27 are |used to |
|00000700| 69 6e 64 69 63 61 74 65 | 20 77 68 65 74 68 65 72 |indicate| whether|
|00000710| 20 79 6f 75 20 75 73 65 | 20 74 68 65 20 6c 65 66 | you use| the lef|
|00000720| 74 20 61 6e 64 20 72 69 | 67 68 74 20 62 75 74 74 |t and ri|ght butt|
|00000730| 6f 6e 73 20 61 6e 64 20 | 61 72 65 20 64 65 73 63 |ons and |are desc|
|00000740| 72 69 62 65 64 20 69 6e | 20 74 68 65 20 44 65 76 |ribed in| the Dev|
|00000750| 69 63 65 20 4d 61 6e 61 | 67 65 72 20 63 68 61 70 |ice Mana|ger chap|
|00000760| 74 65 72 73 20 69 6e 20 | 49 6e 73 69 64 65 20 4d |ters in |Inside M|
|00000770| 61 63 69 6e 74 6f 73 68 | 20 76 6f 6c 75 6d 65 73 |acintosh| volumes|
|00000780| 20 49 56 20 61 6e 64 20 | 56 2e 0d 42 69 74 20 32 | IV and |V..Bit 2|
|00000790| 30 20 74 65 6c 6c 73 20 | 74 68 65 20 43 68 6f 6f |0 tells |the Choo|
|000007a0| 73 65 72 20 74 68 61 74 | 20 79 6f 75 20 61 72 65 |ser that| you are|
|000007b0| 20 65 6d 70 6c 6f 79 69 | 6e 67 20 74 68 65 20 6f | employi|ng the o|
|000007c0| 6e 20 61 6e 64 20 6f 66 | 66 20 72 61 64 69 6f 20 |n and of|f radio |
|000007d0| 62 75 74 74 6f 6e 73 2e | 20 54 68 65 69 72 20 74 |buttons.| Their t|
|000007e0| 69 74 6c 65 73 20 63 61 | 6e 20 62 65 20 73 6f 6d |itles ca|n be som|
|000007f0| 65 74 68 69 6e 67 20 6f | 74 68 65 72 20 74 68 61 |ething o|ther tha|
|00000800| 6e 20 d2 6f 6e d3 20 61 | 6e 64 20 d2 6f 66 66 d3 |n .on. a|nd .off.|
|00000810| 2c 20 6f 66 20 63 6f 75 | 72 73 65 2c 20 62 75 74 |, of cou|rse, but|
|00000820| 20 77 65 d5 6c 6c 20 63 | 6f 6e 74 69 6e 75 65 20 | we.ll c|ontinue |
|00000830| 74 6f 20 75 73 65 20 74 | 68 6f 73 65 20 6e 61 6d |to use t|hose nam|
|00000840| 65 73 20 73 69 6e 63 65 | 20 74 68 61 74 20 69 73 |es since| that is|
|00000850| 20 77 68 61 74 20 74 68 | 65 20 4c 61 73 65 72 57 | what th|e LaserW|
|00000860| 72 69 74 65 72 20 64 72 | 69 76 65 72 20 28 35 2e |riter dr|iver (5.|
|00000870| 30 20 6f 72 20 6c 61 74 | 65 72 29 20 63 61 6c 6c |0 or lat|er) call|
|00000880| 73 20 74 68 65 6d 2e 20 | 49 6e 20 61 64 64 69 74 |s them. |In addit|
|00000890| 69 6f 6e 20 74 6f 20 74 | 68 65 20 63 6f 6e 74 72 |ion to t|he contr|
|000008a0| 6f 6c 73 20 61 6e 64 20 | 74 68 65 69 72 20 74 69 |ols and |their ti|
|000008b0| 74 6c 65 73 2c 20 61 20 | 73 74 61 74 69 63 20 6c |tles, a |static l|
|000008c0| 61 62 65 6c 20 28 d2 42 | 61 63 6b 67 72 6f 75 6e |abel (.B|ackgroun|
|000008d0| 64 20 50 72 69 6e 74 69 | 6e 67 3a d3 20 66 6f 72 |d Printi|ng:. for|
|000008e0| 20 74 68 65 20 4c 61 73 | 65 72 57 72 69 74 65 72 | the Las|erWriter|
|000008f0| 29 20 77 69 6c 6c 20 62 | 65 20 64 69 73 70 6c 61 |) will b|e displa|
|00000900| 79 65 64 2e 0d 54 68 65 | 20 74 69 74 6c 65 20 73 |yed..The| title s|
|00000910| 74 72 69 6e 67 73 20 66 | 6f 72 20 74 68 65 73 65 |trings f|or these|
|00000920| 20 72 61 64 69 6f 20 62 | 75 74 74 6f 6e 73 20 61 | radio b|uttons a|
|00000930| 72 65 20 63 6f 6e 74 61 | 69 6e 65 64 20 69 6e 20 |re conta|ined in |
|00000940| 74 68 65 20 27 53 54 52 | ca 27 20 72 65 73 6f 75 |the 'STR|.' resou|
|00000950| 72 63 65 73 20 77 69 74 | 68 20 49 44 73 20 d0 34 |rces wit|h IDs .4|
|00000960| 30 38 39 20 61 6e 64 20 | d0 34 30 38 38 20 69 6e |089 and |.4088 in|
|00000970| 20 74 68 65 20 64 65 76 | 69 63 65 20 72 65 73 6f | the dev|ice reso|
|00000980| 75 72 63 65 20 66 69 6c | 65 2e 20 54 68 65 20 73 |urce fil|e. The s|
|00000990| 74 72 69 6e 67 20 66 6f | 72 20 74 68 65 20 6c 61 |tring fo|r the la|
|000009a0| 62 65 6c 20 69 73 20 63 | 6f 6e 74 61 69 6e 65 64 |bel is c|ontained|
|000009b0| 20 69 6e 20 27 53 54 52 | ca 27 20 72 65 73 6f 75 | in 'STR|.' resou|
|000009c0| 72 63 65 20 d0 34 30 38 | 37 2e 0d 54 68 65 20 72 |rce .408|7..The r|
|000009d0| 65 63 74 61 6e 67 6c 65 | 73 20 66 6f 72 20 74 68 |ectangle|s for th|
|000009e0| 65 73 65 20 69 74 65 6d | 73 20 61 72 65 20 64 65 |ese item|s are de|
|000009f0| 66 69 6e 65 64 20 69 6e | 20 74 68 65 20 27 6e 72 |fined in| the 'nr|
|00000a00| 63 74 27 20 d0 34 30 39 | 36 20 72 65 73 6f 75 72 |ct' .409|6 resour|
|00000a10| 63 65 20 69 6e 20 74 68 | 65 20 64 65 76 69 63 65 |ce in th|e device|
|00000a20| 20 72 65 73 6f 75 72 63 | 65 20 66 69 6c 65 2e 20 | resourc|e file. |
|00000a30| 20 54 68 65 20 44 65 76 | 69 63 65 20 4d 61 6e 61 | The Dev|ice Mana|
|00000a40| 67 65 72 20 63 68 61 70 | 74 65 72 20 6f 66 20 49 |ger chap|ter of I|
|00000a50| 6e 73 69 64 65 20 4d 61 | 63 69 6e 74 6f 73 68 20 |nside Ma|cintosh |
|00000a60| 56 2d 34 33 30 20 64 65 | 73 63 72 69 62 65 73 20 |V-430 de|scribes |
|00000a70| 74 68 65 20 27 6e 72 63 | 74 27 20 72 65 73 6f 75 |the 'nrc|t' resou|
|00000a80| 72 63 65 73 2e 20 54 68 | 65 20 74 68 69 72 64 20 |rces. Th|e third |
|00000a90| 61 6e 64 20 66 6f 75 72 | 74 68 20 72 65 63 74 61 |and four|th recta|
|00000aa0| 6e 67 6c 65 73 20 70 6f | 73 69 74 69 6f 6e 20 74 |ngles po|sition t|
|00000ab0| 68 65 20 72 61 64 69 6f | 20 62 75 74 74 6f 6e 73 |he radio| buttons|
|00000ac0| 20 77 68 69 6c 65 20 74 | 68 65 20 66 69 66 74 68 | while t|he fifth|
|00000ad0| 20 72 65 63 74 61 6e 67 | 6c 65 20 70 6f 73 69 74 | rectang|le posit|
|00000ae0| 69 6f 6e 73 20 74 68 65 | 20 6c 61 62 65 6c 2e 0d |ions the| label..|
|00000af0| 46 6f 72 20 65 78 61 6d | 70 6c 65 2c 20 20 74 68 |For exam|ple, th|
|00000b00| 65 20 43 68 6f 6f 73 65 | 72 20 69 6e 74 65 72 66 |e Choose|r interf|
|00000b10| 61 63 65 20 70 69 63 74 | 75 72 65 64 20 62 65 6c |ace pict|ured bel|
|00000b20| 6f 77 20 63 6f 72 72 65 | 73 70 6f 6e 64 73 20 74 |ow corre|sponds t|
|00000b30| 6f 20 74 68 65 20 66 6f | 6c 6c 6f 77 69 6e 67 20 |o the fo|llowing |
|00000b40| 52 65 7a 20 69 6e 70 75 | 74 2e 0d 09 2f 2a 20 6c |Rez inpu|t.../* l|
|00000b50| 61 62 65 6c 20 66 6f 72 | 20 72 61 64 69 6f 20 62 |abel for| radio b|
|00000b60| 75 74 74 6f 6e 73 20 2a | 2f 0d 09 72 65 73 6f 75 |uttons *|/..resou|
|00000b70| 72 63 65 20 27 53 54 52 | 20 27 20 28 2d 34 30 38 |rce 'STR| ' (-408|
|00000b80| 37 29 20 7b 0d 09 09 22 | 54 75 72 6e 20 6d 65 3a |7) {..."|Turn me:|
|00000b90| 22 0d 09 7d 3b 0d 09 2f | 2a 20 d2 6f 66 66 d3 20 |"..};../|* .off. |
|00000ba0| 72 61 64 69 6f 20 62 75 | 74 74 6f 6e 20 2a 2f 0d |radio bu|tton */.|
|00000bb0| 09 72 65 73 6f 75 72 63 | 65 20 27 53 54 52 20 27 |.resourc|e 'STR '|
|00000bc0| 20 28 2d 34 30 38 38 29 | 20 7b 0d 09 09 22 4f 66 | (-4088)| {..."Of|
|00000bd0| 66 22 0d 09 7d 3b 0d 09 | 2f 2a 20 d2 6f 6e d3 20 |f"..};..|/* .on. |
|00000be0| 72 61 64 69 6f 20 62 75 | 74 74 6f 6e 20 2a 2f 0d |radio bu|tton */.|
|00000bf0| 09 72 65 73 6f 75 72 63 | 65 20 27 53 54 52 20 27 |.resourc|e 'STR '|
|00000c00| 20 28 2d 34 30 38 39 29 | 20 7b 0d 09 09 22 4f 6e | (-4089)| {..."On|
|00000c10| 22 0d 09 7d 3b 0d 09 72 | 65 73 6f 75 72 63 65 20 |"..};..r|esource |
|00000c20| 27 6e 72 63 74 27 20 28 | 2d 34 30 39 36 29 20 7b |'nrct' (|-4096) {|
|00000c30| 0d 09 09 7b 20 0d 09 09 | 2f 2a 20 5b 31 5d 20 4c |...{ ...|/* [1] L|
|00000c40| 65 66 74 20 42 75 74 74 | 6f 6e 20 2a 2f 0d 09 09 |eft Butt|on */...|
|00000c50| 7b 30 2c 20 30 2c 20 30 | 2c 20 30 7d 2c 0d 09 09 |{0, 0, 0|, 0},...|
|00000c60| 2f 2a 20 5b 32 5d 20 52 | 69 67 68 74 20 42 75 74 |/* [2] R|ight But|
|00000c70| 74 6f 6e 20 2a 2f 0d 09 | 09 7b 30 2c 20 30 2c 20 |ton */..|.{0, 0, |
|00000c80| 30 2c 20 30 7d 2c 0d 09 | 09 2f 2a 20 5b 33 5d 20 |0, 0},..|./* [3] |
|00000c90| 6f 6e 20 52 61 64 69 6f | 20 42 75 74 74 6f 6e 20 |on Radio| Button |
|00000ca0| 2a 2f 0d 09 09 7b 31 31 | 34 2c 20 32 36 30 2c 20 |*/...{11|4, 260, |
|00000cb0| 31 33 30 2c 20 33 32 30 | 7d 2c 0d 09 09 2f 2a 20 |130, 320|},.../* |
|00000cc0| 5b 34 5d 20 6f 66 66 20 | 52 61 64 69 6f 20 42 75 |[4] off |Radio Bu|
|00000cd0| 74 74 6f 6e 20 2a 2f 0d | 09 09 7b 31 31 34 2c 20 |tton */.|..{114, |
|00000ce0| 33 33 30 2c 20 31 33 30 | 2c 20 33 39 30 7d 2c 0d |330, 130|, 390},.|
|00000cf0| 09 09 2f 2a 20 5b 35 5d | 20 4c 61 62 65 6c 20 66 |../* [5]| Label f|
|00000d00| 6f 72 20 52 61 64 69 6f | 20 42 75 74 74 6f 6e 73 |or Radio| Buttons|
|00000d10| 20 2a 2f 0d 09 09 7b 31 | 31 34 2c 20 31 37 37 2c | */...{1|14, 177,|
|00000d20| 20 31 33 30 2c 20 32 35 | 30 7d 0d 09 09 7d 0d 09 | 130, 25|0}...}..|
|00000d30| 7d 3b 0d 49 66 20 74 68 | 65 20 72 65 63 74 61 6e |};.If th|e rectan|
|00000d40| 67 6c 65 73 20 66 6f 72 | 20 74 68 65 73 65 20 69 |gles for| these i|
|00000d50| 74 65 6d 73 20 61 72 65 | 20 6e 6f 74 20 73 70 65 |tems are| not spe|
|00000d60| 63 69 66 69 65 64 20 69 | 6e 20 74 68 65 20 27 6e |cified i|n the 'n|
|00000d70| 72 63 74 27 20 72 65 73 | 6f 75 72 63 65 2c 20 74 |rct' res|ource, t|
|00000d80| 68 65 6e 20 74 68 65 20 | 43 68 6f 6f 73 65 72 20 |hen the |Chooser |
|00000d90| 75 73 65 73 20 64 65 66 | 61 75 6c 74 20 70 6f 73 |uses def|ault pos|
|00000da0| 69 74 69 6f 6e 73 20 66 | 6f 72 20 74 68 65 73 65 |itions f|or these|
|00000db0| 20 69 74 65 6d 73 20 66 | 72 6f 6d 20 74 68 65 20 | items f|rom the |
|00000dc0| 43 68 6f 6f 73 65 72 d5 | 73 20 70 72 69 76 61 74 |Chooser.|s privat|
|00000dd0| 65 20 27 6e 72 63 74 27 | 20 72 65 73 6f 75 72 63 |e 'nrct'| resourc|
|00000de0| 65 2e 20 54 68 65 73 65 | 20 64 65 66 61 75 6c 74 |e. These| default|
|00000df0| 20 70 6f 73 69 74 69 6f | 6e 73 20 61 72 65 3a 0d | positio|ns are:.|
|00000e00| 09 09 2f 2a 20 5b 33 5d | 20 6f 6e 20 52 61 64 69 |../* [3]| on Radi|
|00000e10| 6f 20 42 75 74 74 6f 6e | 20 2a 2f 0d 09 09 7b 31 |o Button| */...{1|
|00000e20| 31 34 2c 20 32 37 32 2c | 20 31 33 30 2c 20 33 33 |14, 272,| 130, 33|
|00000e30| 32 7d 2c 0d 09 09 2f 2a | 20 5b 34 5d 20 6f 66 66 |2},.../*| [4] off|
|00000e40| 20 52 61 64 69 6f 20 42 | 75 74 74 6f 6e 20 2a 2f | Radio B|utton */|
|00000e50| 0d 09 09 7b 31 31 34 2c | 20 33 33 35 2c 20 31 33 |...{114,| 335, 13|
|00000e60| 30 2c 20 33 39 35 7d 2c | 0d 09 09 2f 2a 20 5b 35 |0, 395},|.../* [5|
|00000e70| 5d 20 4c 61 62 65 6c 20 | 66 6f 72 20 52 61 64 69 |] Label |for Radi|
|00000e80| 6f 20 42 75 74 74 6f 6e | 73 20 2a 2f 0d 09 09 7b |o Button|s */...{|
|00000e90| 31 31 34 2c 20 31 37 30 | 2c 20 31 33 30 2c 20 32 |114, 170|, 130, 2|
|00000ea0| 36 37 7d 2c 0d 49 6e 20 | 6f 72 64 65 72 20 66 6f |67},.In |order fo|
|00000eb0| 72 20 74 68 65 20 72 61 | 64 69 6f 20 62 75 74 74 |r the ra|dio butt|
|00000ec0| 6f 6e 73 20 74 6f 20 62 | 65 20 64 69 73 70 6c 61 |ons to b|e displa|
|00000ed0| 79 65 64 2c 20 74 68 65 | 20 27 50 41 43 4b 27 20 |yed, the| 'PACK' |
|00000ee0| 6d 75 73 74 20 63 61 6c | 6c 20 53 68 6f 77 43 6f |must cal|l ShowCo|
|00000ef0| 6e 74 72 6f 6c 20 66 6f | 72 20 65 61 63 68 20 6f |ntrol fo|r each o|
|00000f00| 66 20 74 68 65 6d 2c 20 | 61 6e 64 20 70 61 73 73 |f them, |and pass|
|00000f10| 20 69 6e 20 74 68 65 20 | 63 6f 72 72 65 73 70 6f | in the |correspo|
|00000f20| 6e 64 69 6e 67 20 43 6f | 6e 74 72 6f 6c 48 61 6e |nding Co|ntrolHan|
|00000f30| 64 6c 65 2e 20 54 6f 20 | 74 75 72 6e 20 6f 6e 65 |dle. To |turn one|
|00000f40| 20 6f 66 20 74 68 65 20 | 72 61 64 69 6f 20 62 75 | of the |radio bu|
|00000f50| 74 74 6f 6e 73 20 d2 6f | 6e d3 20 61 6e 64 20 74 |ttons .o|n. and t|
|00000f60| 68 65 20 6f 74 68 65 72 | 20 d2 6f 66 66 2c d3 20 |he other| .off,. |
|00000f70| 74 68 65 20 27 50 41 43 | 4b 27 20 6d 75 73 74 20 |the 'PAC|K' must |
|00000f80| 63 61 6c 6c 20 53 65 74 | 43 74 6c 56 61 6c 75 65 |call Set|CtlValue|
|00000f90| 2e 20 54 68 65 20 62 65 | 73 74 20 74 69 6d 65 20 |. The be|st time |
|00000fa0| 74 6f 20 63 61 6c 6c 20 | 74 68 65 73 65 20 72 6f |to call |these ro|
|00000fb0| 75 74 69 6e 65 73 20 74 | 6f 20 73 65 74 20 75 70 |utines t|o set up|
|00000fc0| 20 74 68 65 20 72 61 64 | 69 6f 20 62 75 74 74 6f | the rad|io butto|
|00000fd0| 6e 73 20 69 73 20 77 68 | 65 6e 20 74 68 65 20 27 |ns is wh|en the '|
|00000fe0| 50 41 43 4b 27 20 72 65 | 63 65 69 76 65 73 20 74 |PACK' re|ceives t|
|00000ff0| 68 65 20 69 6e 69 74 4d | 73 67 2e 20 42 79 20 73 |he initM|sg. By s|
|00001000| 68 6f 77 69 6e 67 20 74 | 68 65 20 62 75 74 74 6f |howing t|he butto|
|00001010| 6e 73 20 61 66 74 65 72 | 20 79 6f 75 20 68 61 76 |ns after| you hav|
|00001020| 65 20 73 65 74 20 74 68 | 65 69 72 20 76 61 6c 75 |e set th|eir valu|
|00001030| 65 73 2c 20 79 6f 75 20 | 63 61 6e 20 61 76 6f 69 |es, you |can avoi|
|00001040| 64 20 75 6e 6e 65 63 65 | 73 73 61 72 79 20 72 65 |d unnece|ssary re|
|00001050| 64 72 61 77 69 6e 67 2e | 0d 57 68 65 6e 20 74 68 |drawing.|.When th|
|00001060| 65 20 75 73 65 72 20 63 | 6c 69 63 6b 73 20 65 69 |e user c|licks ei|
|00001070| 74 68 65 72 20 6f 66 20 | 74 68 65 20 72 61 64 69 |ther of |the radi|
|00001080| 6f 20 62 75 74 74 6f 6e | 73 2c 20 74 68 65 20 27 |o button|s, the '|
|00001090| 50 41 43 4b 27 20 72 65 | 63 65 69 76 65 73 20 62 |PACK' re|ceives b|
|000010a0| 75 74 74 6f 6e 4d 73 67 | 20 61 6e 64 20 6f 62 6a |uttonMsg| and obj|
|000010b0| 4e 61 6d 65 20 63 6f 6e | 74 61 69 6e 73 20 61 20 |Name con|tains a |
|000010c0| 70 6f 69 6e 74 65 72 20 | 74 6f 20 61 6e 20 61 72 |pointer |to an ar|
|000010d0| 72 61 79 20 6f 66 20 43 | 6f 6e 74 72 6f 6c 48 61 |ray of C|ontrolHa|
|000010e0| 6e 64 6c 65 73 2c 20 61 | 73 20 65 78 70 6c 61 69 |ndles, a|s explai|
|000010f0| 6e 65 64 20 61 62 6f 76 | 65 2e 20 54 68 65 20 27 |ned abov|e. The '|
|00001100| 50 41 43 4b 27 20 6b 6e | 6f 77 73 20 77 68 69 63 |PACK' kn|ows whic|
|00001110| 68 20 6f 66 20 74 68 65 | 20 72 61 64 69 6f 20 62 |h of the| radio b|
|00001120| 75 74 74 6f 6e 73 20 77 | 61 73 20 63 6c 69 63 6b |uttons w|as click|
|00001130| 65 64 20 74 68 72 6f 75 | 67 68 20 74 68 65 20 6c |ed throu|gh the l|
|00001140| 6f 77 2d 6f 72 64 65 72 | 20 62 79 74 65 20 6f 66 |ow-order| byte of|
|00001150| 20 74 68 65 20 70 32 20 | 70 61 72 61 6d 65 74 65 | the p2 |paramete|
|00001160| 72 2e 20 54 68 69 73 20 | 62 79 74 65 20 63 6f 6e |r. This |byte con|
|00001170| 74 61 69 6e 73 20 33 20 | 69 66 20 74 68 65 20 d2 |tains 3 |if the .|
|00001180| 6f 6e d3 20 72 61 64 69 | 6f 20 62 75 74 74 6f 6e |on. radi|o button|
|00001190| 20 77 61 73 20 63 6c 69 | 63 6b 65 64 2c 20 6f 72 | was cli|cked, or|
|000011a0| 20 34 20 69 66 20 74 68 | 65 20 d2 6f 66 66 d3 20 | 4 if th|e .off. |
|000011b0| 72 61 64 69 6f 20 62 75 | 74 74 6f 6e 20 77 61 73 |radio bu|tton was|
|000011c0| 20 63 6c 69 63 6b 65 64 | 2e 20 49 74 20 69 73 20 | clicked|. It is |
|000011d0| 74 68 65 20 64 65 76 69 | 63 65 20 70 61 63 6b 61 |the devi|ce packa|
|000011e0| 67 65 d5 73 20 72 65 73 | 70 6f 6e 73 69 62 69 6c |ge.s res|ponsibil|
|000011f0| 69 74 79 20 74 6f 20 73 | 65 74 20 6f 72 20 63 6c |ity to s|et or cl|
|00001200| 65 61 72 20 74 68 65 20 | 72 61 64 69 6f 20 62 75 |ear the |radio bu|
|00001210| 74 74 6f 6e 73 20 69 6e | 20 72 65 73 70 6f 6e 73 |ttons in| respons|
|00001220| 65 20 74 6f 20 74 68 65 | 20 75 73 65 72 d5 73 20 |e to the| user.s |
|00001230| 61 63 74 69 6f 6e 2e 0d | 46 75 72 74 68 65 72 20 |action..|Further |
|00001240| 52 65 66 65 72 65 6e 63 | 65 3a 0d a5 09 54 68 65 |Referenc|e:...The|
|00001250| 20 44 65 76 69 63 65 20 | 4d 61 6e 61 67 65 72 20 | Device |Manager |
|00001260| 28 56 6f 6c 75 6d 65 73 | 20 49 49 2c 20 49 56 2c |(Volumes| II, IV,|
|00001270| 20 61 6e 64 20 56 29 0d | a5 09 54 68 65 20 43 6f | and V).|..The Co|
|00001280| 6e 74 72 6f 6c 20 50 61 | 6e 65 6c 20 28 56 6f 6c |ntrol Pa|nel (Vol|
|00001290| 75 6d 65 20 56 29 0d 4f | 56 20 32 20 2d 20 43 68 |ume V).O|V 2 - Ch|
|000012a0| 65 63 6b 69 6e 67 20 66 | 6f 72 20 53 70 65 63 69 |ecking f|or Speci|
|000012b0| 66 69 63 20 46 75 6e 63 | 74 69 6f 6e 61 6c 69 74 |fic Func|tionalit|
|000012c0| 79 0d 4f 76 65 72 76 69 | 65 77 09 0d 52 65 76 69 |y.Overvi|ew..Revi|
|000012d0| 73 65 64 20 62 79 3a 09 | 09 4d 61 72 63 68 20 31 |sed by:.|.March 1|
|000012e0| 39 38 38 0d 57 72 69 74 | 74 65 6e 20 62 79 3a 09 |988.Writ|ten by:.|
|000012f0| 4a 69 6d 20 46 72 69 65 | 64 6c 61 6e 64 65 72 20 |Jim Frie|dlander |
|00001300| 09 53 65 70 74 65 6d 62 | 65 72 20 31 39 38 37 0d |.Septemb|er 1987.|
|00001310| 54 68 69 73 20 74 65 63 | 68 6e 69 63 61 6c 20 6e |This tec|hnical n|
|00001320| 6f 74 65 20 65 78 70 6c | 61 69 6e 73 20 68 6f 77 |ote expl|ains how|
|00001330| 20 74 6f 20 63 68 65 63 | 6b 20 61 74 20 72 75 6e | to chec|k at run|
|00001340| 20 74 69 6d 65 20 74 6f | 20 73 65 65 20 69 66 20 | time to| see if |
|00001350| 73 70 65 63 69 66 69 63 | 20 66 75 6e 63 74 69 6f |specific| functio|
|00001360| 6e 61 6c 69 74 79 2c 20 | 73 75 63 68 20 61 73 20 |nality, |such as |
|00001370| 74 68 65 20 d2 6e 65 77 | d3 20 54 65 78 74 45 64 |the .new|. TextEd|
|00001380| 69 74 2c 20 69 73 20 70 | 72 65 73 65 6e 74 2e 0d |it, is p|resent..|
|00001390| 41 70 70 6c 69 63 61 74 | 69 6f 6e 73 20 73 68 6f |Applicat|ions sho|
|000013a0| 75 6c 64 20 73 74 72 69 | 76 65 20 74 6f 20 62 65 |uld stri|ve to be|
|000013b0| 20 63 6f 6d 70 61 74 69 | 62 6c 65 20 61 63 72 6f | compati|ble acro|
|000013c0| 73 73 20 61 6c 6c 20 4d | 61 63 69 6e 74 6f 73 68 |ss all M|acintosh|
|000013d0| 65 73 2c 20 62 75 74 20 | 74 68 65 72 65 20 61 72 |es, but |there ar|
|000013e0| 65 20 74 69 6d 65 73 20 | 77 68 65 6e 20 61 6e 20 |e times |when an |
|000013f0| 61 70 70 6c 69 63 61 74 | 69 6f 6e 20 6d 75 73 74 |applicat|ion must|
|00001400| 20 68 61 76 65 20 6b 6e | 6f 77 6c 65 64 67 65 20 | have kn|owledge |
|00001410| 61 62 6f 75 74 20 74 68 | 65 20 6d 61 63 68 69 6e |about th|e machin|
|00001420| 65 20 74 68 61 74 20 69 | 74 20 69 73 20 72 75 6e |e that i|t is run|
|00001430| 6e 69 6e 67 20 6f 6e 2e | 20 20 54 68 65 20 6e 65 |ning on.| The ne|
|00001440| 77 20 74 72 61 70 2c 20 | 53 79 73 45 6e 76 69 72 |w trap, |SysEnvir|
|00001450| 6f 6e 73 2c 20 77 69 6c | 6c 20 67 69 76 65 20 61 |ons, wil|l give a|
|00001460| 6e 20 61 70 70 6c 69 63 | 61 74 69 6f 6e 20 6d 6f |n applic|ation mo|
|00001470| 73 74 20 6f 66 20 74 68 | 65 20 69 6e 66 6f 72 6d |st of th|e inform|
|00001480| 61 74 69 6f 6e 20 74 68 | 61 74 20 69 74 20 72 65 |ation th|at it re|
|00001490| 71 75 69 72 65 73 20 28 | 77 68 61 74 20 68 61 72 |quires (|what har|
|000014a0| 64 77 61 72 65 2c 20 77 | 68 61 74 20 76 65 72 73 |dware, w|hat vers|
|000014b0| 69 6f 6e 20 6f 66 20 73 | 79 73 74 65 6d 20 73 6f |ion of s|ystem so|
|000014c0| 66 74 77 61 72 65 c9 29 | 2e 20 20 0d 55 73 69 6e |ftware.)|. .Usin|
|000014d0| 67 20 53 79 73 45 6e 76 | 69 72 6f 6e 73 0d 49 6e |g SysEnv|irons.In|
|000014e0| 20 6d 6f 73 74 20 63 61 | 73 65 73 2c 20 69 66 20 | most ca|ses, if |
|000014f0| 79 6f 75 20 65 78 61 6d | 69 6e 65 20 77 68 79 20 |you exam|ine why |
|00001500| 79 6f 75 20 77 61 6e 74 | 20 74 6f 20 74 65 73 74 |you want| to test|
|00001510| 20 66 6f 72 20 74 68 65 | 20 65 78 69 73 74 65 6e | for the| existen|
|00001520| 63 65 20 6f 66 20 61 20 | 73 70 65 63 69 66 69 63 |ce of a |specific|
|00001530| 20 74 72 61 70 2c 20 79 | 6f 75 20 77 69 6c 6c 20 | trap, y|ou will |
|00001540| 66 69 6e 64 20 74 68 61 | 74 20 74 68 65 72 65 20 |find tha|t there |
|00001550| 69 73 20 61 6e 20 61 6c | 74 65 72 6e 61 74 69 76 |is an al|ternativ|
|00001560| 65 20 6d 65 74 68 6f 64 | 2c 20 66 6f 72 20 65 78 |e method|, for ex|
|00001570| 61 6d 70 6c 65 3a 0d 49 | 20 6e 65 65 64 20 74 6f |ample:.I| need to|
|00001580| 20 73 65 65 20 69 66 20 | 74 68 65 20 d2 6e 65 77 | see if |the .new|
|00001590| d3 20 54 65 78 74 45 64 | 69 74 20 63 61 6c 6c 73 |. TextEd|it calls|
|000015a0| 20 61 72 65 20 61 76 61 | 69 6c 61 62 6c 65 2e 0d | are ava|ilable..|
|000015b0| 43 61 6c 6c 20 53 79 73 | 45 6e 76 69 72 6f 6e 73 |Call Sys|Environs|
|000015c0| 20 61 6e 64 20 63 68 65 | 63 6b 20 74 6f 20 73 65 | and che|ck to se|
|000015d0| 65 20 74 68 61 74 20 53 | 79 73 45 6e 76 52 65 63 |e that S|ysEnvRec|
|000015e0| 2e 6d 61 63 68 69 6e 65 | 54 79 70 65 20 3e 3d 20 |.machine|Type >= |
|000015f0| 30 20 28 31 32 38 4b 20 | 52 4f 4d 73 20 6f 72 20 |0 (128K |ROMs or |
|00001600| 6e 65 77 65 72 29 20 61 | 6e 64 20 74 68 61 74 20 |newer) a|nd that |
|00001610| 77 65 20 61 72 65 20 72 | 75 6e 6e 69 6e 67 20 53 |we are r|unning S|
|00001620| 79 73 74 65 6d 20 34 2e | 31 20 6f 72 20 6c 61 74 |ystem 4.|1 or lat|
|00001630| 65 72 20 28 53 79 73 74 | 65 6d 20 34 2e 31 20 61 |er (Syst|em 4.1 a|
|00001640| 6e 64 20 6c 61 74 65 72 | 20 73 75 70 70 6f 72 74 |nd later| support|
|00001650| 20 74 68 65 20 6e 65 77 | 20 54 65 78 74 45 64 69 | the new| TextEdi|
|00001660| 74 20 6f 6e 20 31 32 38 | 4b 20 61 6e 64 20 67 72 |t on 128|K and gr|
|00001670| 65 61 74 65 72 20 52 4f | 4d 20 6d 61 63 68 69 6e |eater RO|M machin|
|00001680| 65 73 d1 77 65 20 63 61 | 6e 20 63 68 65 63 6b 20 |es.we ca|n check |
|00001690| 74 68 69 73 20 62 79 20 | 6a 75 73 74 20 73 65 65 |this by |just see|
|000016a0| 69 6e 67 20 69 66 20 74 | 68 65 20 53 79 73 45 6e |ing if t|he SysEn|
|000016b0| 76 69 72 6f 6e 73 20 74 | 72 61 70 20 65 78 69 73 |virons t|rap exis|
|000016c0| 74 73 2c 20 69 66 20 77 | 65 20 67 65 74 20 61 6e |ts, if w|e get an|
|000016d0| 20 65 6e 76 4e 6f 74 50 | 72 65 73 65 6e 74 20 65 | envNotP|resent e|
|000016e0| 72 72 6f 72 2c 20 77 65 | 20 6b 6e 6f 77 20 69 74 |rror, we| know it|
|000016f0| 20 64 6f 65 73 6e d5 74 | 29 2e 20 20 49 6e 20 50 | doesn.t|). In P|
|00001700| 61 73 63 61 6c 3a 0d 43 | 4f 4e 53 54 0d 09 43 75 |ascal:.C|ONST..Cu|
|00001710| 72 72 65 6e 74 56 65 72 | 73 69 6f 6e 20 3d 20 31 |rrentVer|sion = 1|
|00001720| 3b 20 20 7b 43 75 72 72 | 65 6e 74 20 76 65 72 73 |; {Curr|ent vers|
|00001730| 69 6f 6e 20 6f 66 20 53 | 79 73 45 6e 76 69 72 6f |ion of S|ysEnviro|
|00001740| 6e 73 7d 0d 56 41 52 0d | 09 6e 65 77 54 65 78 74 |ns}.VAR.|.newText|
|00001750| 41 76 61 69 6c 09 3a 20 | 42 4f 4f 4c 45 41 4e 3b |Avail.: |BOOLEAN;|
|00001760| 0d 09 74 68 65 57 6f 72 | 6c 64 09 3a 20 53 79 73 |..theWor|ld.: Sys|
|00001770| 45 6e 76 52 65 63 3b 0d | 42 45 47 49 4e 0d 7b 0d |EnvRec;.|BEGIN.{.|
|00001780| 54 68 69 73 20 63 6f 64 | 65 20 63 68 65 63 6b 73 |This cod|e checks|
|00001790| 20 74 6f 20 73 65 65 20 | 69 66 20 53 79 73 74 65 | to see |if Syste|
|000017a0| 6d 20 34 2e 31 20 6f 72 | 20 6c 61 74 65 72 20 69 |m 4.1 or| later i|
|000017b0| 73 20 72 75 6e 6e 69 6e | 67 20 62 79 20 63 61 6c |s runnin|g by cal|
|000017c0| 6c 69 6e 67 0d 53 79 73 | 45 6e 76 69 72 6f 6e 73 |ling.Sys|Environs|
|000017d0| 2e 20 49 66 20 53 79 73 | 45 6e 76 69 72 6f 6e 73 |. If Sys|Environs|
|000017e0| 20 72 65 74 75 72 6e 73 | 20 61 6e 20 65 6e 76 4e | returns| an envN|
|000017f0| 6f 74 50 72 65 73 65 6e | 74 20 65 72 72 6f 72 2c |otPresen|t error,|
|00001800| 20 77 65 20 6b 6e 6f 77 | 20 74 68 61 74 0d 77 65 | we know| that.we|
|00001810| 20 61 72 65 20 72 75 6e | 6e 69 6e 67 20 61 20 73 | are run|ning a s|
|00001820| 79 73 74 65 6d 20 70 72 | 69 6f 72 20 74 6f 20 34 |ystem pr|ior to 4|
|00001830| 2e 31 2c 20 73 6f 20 77 | 65 20 6b 6e 6f 77 20 77 |.1, so w|e know w|
|00001840| 65 20 64 6f 6e d5 74 20 | 68 61 76 65 20 74 68 65 |e don.t |have the|
|00001850| 20 6e 65 77 0d 54 65 78 | 74 45 64 69 74 2e 20 49 | new.Tex|tEdit. I|
|00001860| 66 20 53 79 73 45 6e 76 | 69 72 6f 6e 73 20 64 6f |f SysEnv|irons do|
|00001870| 65 73 6e d5 74 20 72 65 | 74 75 72 6e 20 65 6e 76 |esn.t re|turn env|
|00001880| 4e 6f 74 50 72 65 73 65 | 6e 74 2c 20 77 65 20 63 |NotPrese|nt, we c|
|00001890| 68 65 63 6b 20 6d 61 63 | 68 69 6e 65 0d 74 79 70 |heck mac|hine.typ|
|000018a0| 65 20 74 6f 20 6d 61 6b | 65 20 73 75 72 65 20 77 |e to mak|e sure w|
|000018b0| 65 20 61 72 65 6e 27 74 | 20 72 75 6e 6e 69 6e 67 |e aren't| running|
|000018c0| 20 6f 6e 20 36 34 4b 20 | 52 4f 4d 73 20 28 6e 6f | on 64K |ROMs (no|
|000018d0| 74 65 3a 20 77 65 20 61 | 73 73 75 6d 65 20 74 68 |te: we a|ssume th|
|000018e0| 61 74 20 65 6e 76 4d 61 | 63 68 55 6e 6b 6e 6f 77 |at envMa|chUnknow|
|000018f0| 6e 20 64 6f 65 73 6e 27 | 74 20 68 61 76 65 20 36 |n doesn'|t have 6|
|00001900| 34 4b 20 52 4f 4d 73 20 | 77 68 65 6e 20 77 65 20 |4K ROMs |when we |
|00001910| 63 68 65 63 6b 20 6d 61 | 63 68 69 6e 65 54 79 70 |check ma|chineTyp|
|00001920| 65 20 3e 3d 20 30 29 0d | 7d 0d 09 49 46 20 53 79 |e >= 0).|}..IF Sy|
|00001930| 73 45 6e 76 69 72 6f 6e | 73 28 43 75 72 72 65 6e |sEnviron|s(Curren|
|00001940| 74 56 65 72 73 69 6f 6e | 2c 74 68 65 57 6f 72 6c |tVersion|,theWorl|
|00001950| 64 29 20 3d 20 65 6e 76 | 4e 6f 74 50 72 65 73 65 |d) = env|NotPrese|
|00001960| 6e 74 20 54 48 45 4e 0d | 09 09 6e 65 77 54 65 78 |nt THEN.|..newTex|
|00001970| 74 41 76 61 69 6c 3a 3d | 20 46 41 4c 53 45 0d 09 |tAvail:=| FALSE..|
|00001980| 45 4c 53 45 0d 09 09 6e | 65 77 54 65 78 74 41 76 |ELSE...n|ewTextAv|
|00001990| 61 69 6c 3a 3d 20 28 74 | 68 65 57 6f 72 6c 64 2e |ail:= (t|heWorld.|
|000019a0| 6d 61 63 68 69 6e 65 54 | 79 70 65 20 3e 3d 20 30 |machineT|ype >= 0|
|000019b0| 29 3b 0d 45 4e 44 3b 0d | 49 6e 20 43 3a 0d 2f 2a |);.END;.|In C:./*|
|000019c0| 20 43 75 72 72 65 6e 74 | 20 76 65 72 73 69 6f 6e | Current| version|
|000019d0| 20 6f 66 20 53 79 73 45 | 6e 76 69 72 6f 6e 73 20 | of SysE|nvirons |
|000019e0| 2a 2f 0d 23 64 65 66 69 | 6e 65 20 09 43 75 72 72 |*/.#defi|ne .Curr|
|000019f0| 65 6e 74 56 65 72 73 69 | 6f 6e 09 31 0d 7b 0d 09 |entVersi|on.1.{..|
|00001a00| 42 6f 6f 6c 65 61 6e 20 | 09 6e 65 77 54 65 78 74 |Boolean |.newText|
|00001a10| 41 76 61 69 6c 3b 0d 09 | 53 79 73 45 6e 76 52 65 |Avail;..|SysEnvRe|
|00001a20| 63 20 09 74 68 65 57 6f | 72 6c 64 3b 0d 2f 2a 20 |c .theWo|rld;./* |
|00001a30| 0d 09 73 65 65 20 63 6f | 6d 6d 65 6e 74 20 69 6e |..see co|mment in|
|00001a40| 20 74 68 65 20 61 62 6f | 76 65 20 50 61 73 63 61 | the abo|ve Pasca|
|00001a50| 6c 0d 2a 2f 20 0d 69 66 | 20 28 53 79 73 45 6e 76 |l.*/ .if| (SysEnv|
|00001a60| 69 72 6f 6e 73 28 43 75 | 72 72 65 6e 74 56 65 72 |irons(Cu|rrentVer|
|00001a70| 73 69 6f 6e 2c 26 74 68 | 65 57 6f 72 6c 64 29 20 |sion,&th|eWorld) |
|00001a80| 3d 3d 20 65 6e 76 4e 6f | 74 50 72 65 73 65 6e 74 |== envNo|tPresent|
|00001a90| 29 20 20 09 09 09 6e 65 | 77 54 65 78 74 41 76 61 |) ...ne|wTextAva|
|00001aa0| 69 6c 20 3d 20 66 61 6c | 73 65 3b 20 0d 09 65 6c |il = fal|se; ..el|
|00001ab0| 73 65 20 0d 09 09 6e 65 | 77 54 65 78 74 41 76 61 |se ...ne|wTextAva|
|00001ac0| 69 6c 20 3d 20 28 74 68 | 65 57 6f 72 6c 64 2e 6d |il = (th|eWorld.m|
|00001ad0| 61 63 68 69 6e 65 54 79 | 70 65 20 3e 3d 20 30 29 |achineTy|pe >= 0)|
|00001ae0| 3b 0d 7d 0d 49 20 6e 65 | 65 64 20 74 6f 20 73 65 |;.}.I ne|ed to se|
|00001af0| 65 20 69 66 20 50 6f 70 | 55 70 4d 65 6e 75 53 65 |e if Pop|UpMenuSe|
|00001b00| 6c 65 63 74 20 69 73 20 | 69 6d 70 6c 65 6d 65 6e |lect is |implemen|
|00001b10| 74 65 64 2e 0d 54 68 65 | 20 73 61 6d 65 20 61 6e |ted..The| same an|
|00001b20| 73 77 65 72 20 61 73 20 | 61 62 6f 76 65 20 61 70 |swer as |above ap|
|00001b30| 70 6c 69 65 73 20 68 65 | 72 65 2c 20 73 69 6e 63 |plies he|re, sinc|
|00001b40| 65 20 74 68 65 20 d2 6e | 65 77 d3 20 4d 65 6e 75 |e the .n|ew. Menu|
|00001b50| 20 4d 61 6e 61 67 65 72 | 20 63 61 6c 6c 73 20 61 | Manager| calls a|
|00001b60| 72 65 20 6f 6e 6c 79 20 | 69 6d 70 6c 65 6d 65 6e |re only |implemen|
|00001b70| 74 65 64 20 69 6e 20 53 | 79 73 74 65 6d 20 34 2e |ted in S|ystem 4.|
|00001b80| 31 20 6f 6e 20 31 32 38 | 4b 20 6f 72 20 6c 61 72 |1 on 128|K or lar|
|00001b90| 67 65 72 20 52 4f 4d 20 | 6d 61 63 68 69 6e 65 73 |ger ROM |machines|
|00001ba0| 20 28 61 6e 64 2c 20 61 | 73 20 77 65 20 66 6f 75 | (and, a|s we fou|
|00001bb0| 6e 64 20 61 62 6f 76 65 | 2c 20 50 6f 70 55 70 4d |nd above|, PopUpM|
|00001bc0| 65 6e 75 53 65 6c 65 63 | 74 20 68 61 73 20 74 68 |enuSelec|t has th|
|00001bd0| 65 20 73 61 6d 65 20 74 | 72 61 70 20 6e 75 6d 62 |e same t|rap numb|
|00001be0| 65 72 20 61 73 20 52 65 | 6e 61 6d 65 2c 20 73 6f |er as Re|name, so|
|00001bf0| 20 63 61 6c 6c 69 6e 67 | 20 4e 47 65 74 54 72 61 | calling| NGetTra|
|00001c00| 70 41 64 64 72 65 73 73 | 20 77 6f 6e d5 74 20 77 |pAddress| won.t w|
|00001c10| 6f 72 6b 20 6f 6e 20 36 | 34 4b 20 52 4f 4d 73 29 |ork on 6|4K ROMs)|
|00001c20| 2e 0d 43 68 65 63 6b 69 | 6e 67 20 66 6f 72 20 53 |..Checki|ng for S|
|00001c30| 70 65 63 69 66 69 63 20 | 46 75 6e 63 74 69 6f 6e |pecific |Function|
|00001c40| 61 6c 69 74 79 0d 54 68 | 65 72 65 20 61 72 65 20 |ality.Th|ere are |
|00001c50| 72 61 72 65 20 74 69 6d | 65 73 20 77 68 65 6e 20 |rare tim|es when |
|00001c60| 79 6f 75 20 6d 61 79 20 | 66 65 65 6c 20 74 68 61 |you may |feel tha|
|00001c70| 74 20 69 74 20 69 73 20 | 6e 65 63 65 73 73 61 72 |t it is |necessar|
|00001c80| 79 20 74 6f 20 74 65 73 | 74 20 66 6f 72 20 73 70 |y to tes|t for sp|
|00001c90| 65 63 69 66 69 63 20 66 | 75 6e 63 74 69 6f 6e 61 |ecific f|unctiona|
|00001ca0| 6c 69 74 79 2e 20 20 49 | 6e 20 6f 72 64 65 72 20 |lity. I|n order |
|00001cb0| 74 6f 20 61 6c 6c 6f 77 | 20 66 6f 72 20 74 65 73 |to allow| for tes|
|00001cc0| 74 69 6e 67 20 6f 66 20 | 73 70 65 63 69 66 69 63 |ting of |specific|
|00001cd0| 20 74 72 61 70 20 66 75 | 6e 63 74 69 6f 6e 61 6c | trap fu|nctional|
|00001ce0| 69 74 79 2c 20 74 68 65 | 72 65 20 69 73 20 61 6e |ity, the|re is an|
|00001cf0| 20 6f 66 66 69 63 69 61 | 6c 20 75 6e 69 6d 70 6c | officia|l unimpl|
|00001d00| 65 6d 65 6e 74 65 64 20 | 74 72 61 70 2e 20 20 54 |emented |trap. T|
|00001d10| 68 69 73 20 74 72 61 70 | 20 28 24 41 38 39 46 29 |his trap| ($A89F)|
|00001d20| 20 69 73 20 75 6e 69 6d | 70 6c 65 6d 65 6e 74 65 | is unim|plemente|
|00001d30| 64 20 6f 6e 20 61 6c 6c | 20 4d 61 63 69 6e 74 6f |d on all| Macinto|
|00001d40| 73 68 65 73 2e 20 20 54 | 6f 20 74 65 73 74 20 74 |shes. T|o test t|
|00001d50| 6f 20 73 65 65 20 69 66 | 20 61 20 70 61 72 74 69 |o see if| a parti|
|00001d60| 63 75 6c 61 72 20 74 72 | 61 70 20 74 68 61 74 20 |cular tr|ap that |
|00001d70| 79 6f 75 20 77 69 73 68 | 20 74 6f 20 75 73 65 20 |you wish| to use |
|00001d80| 69 73 20 69 6d 70 6c 65 | 6d 65 6e 74 65 64 2c 20 |is imple|mented, |
|00001d90| 79 6f 75 20 63 61 6e 20 | 63 6f 6d 70 61 72 65 20 |you can |compare |
|00001da0| 69 74 73 20 61 64 64 72 | 65 73 73 20 77 69 74 68 |its addr|ess with|
|00001db0| 20 74 68 65 20 61 64 64 | 72 65 73 73 20 6f 66 20 | the add|ress of |
|00001dc0| 74 68 65 20 75 6e 69 6d | 70 6c 65 6d 65 6e 74 65 |the unim|plemente|
|00001dd0| 64 20 74 72 61 70 2e 20 | 48 65 72 65 20 61 72 65 |d trap. |Here are|
|00001de0| 20 74 77 6f 20 66 72 61 | 67 6d 65 6e 74 73 20 74 | two fra|gments t|
|00001df0| 68 61 74 20 73 68 6f 77 | 20 68 6f 77 20 74 6f 20 |hat show| how to |
|00001e00| 63 68 65 63 6b 20 74 6f | 20 73 65 65 20 69 66 20 |check to| see if |
|00001e10| 53 68 75 74 64 6f 77 6e | 20 69 73 20 69 6d 70 6c |Shutdown| is impl|
|00001e20| 65 6d 65 6e 74 65 64 2e | 20 20 46 69 72 73 74 2c |emented.| First,|
|00001e30| 20 50 61 73 63 61 6c 3a | 20 0d 43 4f 4e 53 54 0d | Pascal:| .CONST.|
|00001e40| 20 20 53 68 75 74 44 6f | 77 6e 54 72 61 70 4e 75 | ShutDo|wnTrapNu|
|00001e50| 6d 09 3d 20 24 39 35 3b | 7b 74 72 61 70 20 6e 75 |m.= $95;|{trap nu|
|00001e60| 6d 62 65 72 20 6f 66 20 | 53 68 75 74 64 6f 77 6e |mber of |Shutdown|
|00001e70| 7d 0d 20 20 55 6e 49 6d | 70 6c 54 72 61 70 4e 75 |}. UnIm|plTrapNu|
|00001e80| 6d 09 3d 20 24 39 46 3b | 7b 74 72 61 70 20 6e 75 |m.= $9F;|{trap nu|
|00001e90| 6d 62 65 72 20 6f 66 20 | d2 75 6e 69 6d 70 6c 65 |mber of |.unimple|
|00001ea0| 6d 65 6e 74 65 64 20 74 | 72 61 70 d3 7d 0d 56 41 |mented t|rap.}.VA|
|00001eb0| 52 0d 20 20 53 68 75 74 | 64 6f 77 6e 49 73 49 6d |R. Shut|downIsIm|
|00001ec0| 70 6c 65 6d 65 6e 74 65 | 64 20 20 20 3a 20 42 4f |plemente|d : BO|
|00001ed0| 4f 4c 45 41 4e 3b 20 20 | 7b 69 73 20 53 68 75 74 |OLEAN; |{is Shut|
|00001ee0| 64 6f 77 6e 20 69 6d 70 | 6c 65 6d 65 6e 74 65 64 |down imp|lemented|
|00001ef0| 7d 0d 42 45 47 49 4e 0d | 7b 49 73 20 53 68 75 74 |}.BEGIN.|{Is Shut|
|00001f00| 64 6f 77 6e 20 69 6d 70 | 6c 65 6d 65 6e 74 65 64 |down imp|lemented|
|00001f10| 3f 7d 0d 20 20 20 09 53 | 68 75 74 64 6f 77 6e 49 |?}. .S|hutdownI|
|00001f20| 73 49 6d 70 6c 65 6d 65 | 6e 74 65 64 20 3a 3d 09 |sImpleme|nted :=.|
|00001f30| 09 09 09 09 09 4e 47 65 | 74 54 72 61 70 41 64 64 |.....NGe|tTrapAdd|
|00001f40| 72 65 73 73 28 53 68 75 | 74 44 6f 77 6e 54 72 61 |ress(Shu|tDownTra|
|00001f50| 70 4e 75 6d 2c 54 6f 6f | 6c 54 72 61 70 29 20 3c |pNum,Too|lTrap) <|
|00001f60| 3e 20 09 09 09 4e 47 65 | 74 54 72 61 70 41 64 64 |> ...NGe|tTrapAdd|
|00001f70| 72 65 73 73 28 55 6e 49 | 6d 70 6c 54 72 61 70 4e |ress(UnI|mplTrapN|
|00001f80| 75 6d 2c 54 6f 6f 6c 54 | 72 61 70 29 3b 0d 45 4e |um,ToolT|rap);.EN|
|00001f90| 44 3b 0d 48 65 72 65 d5 | 73 20 61 20 43 20 66 72 |D;.Here.|s a C fr|
|00001fa0| 61 67 6d 65 6e 74 3a 0d | 2f 2a 74 72 61 70 20 6e |agment:.|/*trap n|
|00001fb0| 75 6d 62 65 72 20 6f 66 | 20 53 68 75 74 64 6f 77 |umber of| Shutdow|
|00001fc0| 6e 2a 2f 0d 23 64 65 66 | 69 6e 65 20 09 53 68 75 |n*/.#def|ine .Shu|
|00001fd0| 74 44 6f 77 6e 54 72 61 | 70 4e 75 6d 09 30 78 39 |tDownTra|pNum.0x9|
|00001fe0| 35 0d 2f 2a 74 72 61 70 | 20 6e 75 6d 62 65 72 20 |5./*trap| number |
|00001ff0| 6f 66 20 d2 75 6e 69 6d | 70 6c 65 6d 65 6e 74 65 |of .unim|plemente|
|00002000| 64 20 74 72 61 70 d3 2a | 2f 0d 23 64 65 66 69 6e |d trap.*|/.#defin|
|00002010| 65 20 09 55 6e 49 6d 70 | 6c 54 72 61 70 4e 75 6d |e .UnImp|lTrapNum|
|00002020| 20 09 30 78 39 46 0d 7b | 0d 09 42 6f 6f 6c 65 61 | .0x9F.{|..Boolea|
|00002030| 6e 20 53 68 75 74 64 6f | 77 6e 49 73 49 6d 70 6c |n Shutdo|wnIsImpl|
|00002040| 65 6d 65 6e 74 65 64 3b | 0d 20 20 09 2f 2a 49 73 |emented;|. ./*Is|
|00002050| 20 53 68 75 74 64 6f 77 | 6e 20 69 6d 70 6c 65 6d | Shutdow|n implem|
|00002060| 65 6e 74 65 64 3f 2a 2f | 0d 20 20 20 09 53 68 75 |ented?*/|. .Shu|
|00002070| 74 64 6f 77 6e 49 73 49 | 6d 70 6c 65 6d 65 6e 74 |tdownIsI|mplement|
|00002080| 65 64 20 3d 09 09 09 09 | 09 09 4e 47 65 74 54 72 |ed =....|..NGetTr|
|00002090| 61 70 41 64 64 72 65 73 | 73 28 53 68 75 74 44 6f |apAddres|s(ShutDo|
|000020a0| 77 6e 54 72 61 70 4e 75 | 6d 2c 54 6f 6f 6c 54 72 |wnTrapNu|m,ToolTr|
|000020b0| 61 70 29 20 21 3d 20 09 | 09 09 4e 47 65 74 54 72 |ap) != .|..NGetTr|
|000020c0| 61 70 41 64 64 72 65 73 | 73 28 55 6e 49 6d 70 6c |apAddres|s(UnImpl|
|000020d0| 54 72 61 70 4e 75 6d 2c | 54 6f 6f 6c 54 72 61 70 |TrapNum,|ToolTrap|
|000020e0| 29 3b 0d 7d 0d 4e 47 65 | 74 54 72 61 70 41 64 64 |);.}.NGe|tTrapAdd|
|000020f0| 72 65 73 73 20 69 73 20 | 75 73 65 64 20 62 65 63 |ress is |used bec|
|00002100| 61 75 73 65 20 69 74 20 | 65 6e 73 75 72 65 73 20 |ause it |ensures |
|00002110| 74 68 61 74 20 79 6f 75 | 20 77 69 6c 6c 20 67 65 |that you| will ge|
|00002120| 74 20 74 68 65 20 63 6f | 72 72 65 63 74 20 74 72 |t the co|rrect tr|
|00002130| 61 70 20 69 6e 20 63 61 | 73 65 20 74 68 65 72 65 |ap in ca|se there|
|00002140| 20 69 73 20 61 20 54 6f | 6f 6c 54 72 61 70 20 61 | is a To|olTrap a|
|00002150| 6e 64 20 61 6e 20 4f 53 | 54 72 61 70 20 77 69 74 |nd an OS|Trap wit|
|00002160| 68 20 74 68 65 20 73 61 | 6d 65 20 6e 75 6d 62 65 |h the sa|me numbe|
|00002170| 72 2e 20 20 50 6c 65 61 | 73 65 20 6e 6f 74 65 20 |r. Plea|se note |
|00002180| 74 68 61 74 20 63 61 6c | 6c 69 6e 67 20 4e 47 65 |that cal|ling NGe|
|00002190| 74 54 72 61 70 41 64 64 | 72 65 73 73 20 64 6f 65 |tTrapAdd|ress doe|
|000021a0| 73 20 6e 6f 74 20 63 61 | 75 73 65 20 63 6f 6d 70 |s not ca|use comp|
|000021b0| 61 74 69 62 69 6c 69 74 | 79 20 70 72 6f 62 6c 65 |atibilit|y proble|
|000021c0| 6d 73 20 77 69 74 68 20 | 36 34 4b 20 52 4f 4d 53 |ms with |64K ROMS|
|000021d0| 2e 20 20 57 68 65 6e 20 | 72 75 6e 20 6f 6e 20 74 |. When |run on t|
|000021e0| 68 6f 73 65 20 52 4f 4d | 73 2c 20 69 74 20 6a 75 |hose ROM|s, it ju|
|000021f0| 73 74 20 62 65 63 6f 6d | 65 73 20 61 20 47 65 74 |st becom|es a Get|
|00002200| 54 72 61 70 41 64 64 72 | 65 73 73 20 63 61 6c 6c |TrapAddr|ess call|
|00002210| 2e 20 20 59 6f 75 20 68 | 61 76 65 20 74 6f 20 62 |. You h|ave to b|
|00002220| 65 20 63 61 72 65 66 75 | 6c 20 6f 6e 20 36 34 4b |e carefu|l on 64K|
|00002230| 20 52 4f 4d 73 d1 79 6f | 75 20 63 61 6e d5 74 20 | ROMs.yo|u can.t |
|00002240| 74 65 73 74 20 66 6f 72 | 20 50 6f 70 55 70 4d 65 |test for| PopUpMe|
|00002250| 6e 75 53 65 6c 65 63 74 | 20 28 24 41 38 30 42 29 |nuSelect| ($A80B)|
|00002260| 2c 20 66 6f 72 20 65 78 | 61 6d 70 6c 65 2c 20 62 |, for ex|ample, b|
|00002270| 65 63 61 75 73 65 20 69 | 74 20 68 61 73 20 74 68 |ecause i|t has th|
|00002280| 65 20 73 61 6d 65 20 74 | 72 61 70 20 6e 75 6d 62 |e same t|rap numb|
|00002290| 65 72 20 61 73 20 52 65 | 6e 61 6d 65 28 24 41 30 |er as Re|name($A0|
|000022a0| 30 42 29 2e 20 20 54 68 | 65 20 36 34 4b 20 52 4f |0B). Th|e 64K RO|
|000022b0| 4d 20 64 69 64 6e d5 74 | 20 72 65 61 6c 6c 79 20 |M didn.t| really |
|000022c0| 64 69 66 66 65 72 65 6e | 74 69 61 74 65 20 62 65 |differen|tiate be|
|000022d0| 74 77 65 65 6e 20 54 6f | 6f 6c 54 72 61 70 73 20 |tween To|olTraps |
|000022e0| 61 6e 64 20 4f 53 54 72 | 61 70 73 20 28 74 68 65 |and OSTr|aps (the|
|000022f0| 72 65 20 77 61 73 20 6e | 6f 20 6f 76 65 72 6c 61 |re was n|o overla|
|00002300| 70 20 69 6e 20 74 72 61 | 70 20 6e 75 6d 62 65 72 |p in tra|p number|
|00002310| 73 29 2e 20 20 53 6f 2c | 20 69 66 20 79 6f 75 20 |s). So,| if you |
|00002320| 77 61 6e 74 65 64 20 74 | 6f 20 74 65 73 74 20 66 |wanted t|o test f|
|00002330| 6f 72 20 50 6f 70 55 70 | 4d 65 6e 75 53 65 6c 65 |or PopUp|MenuSele|
|00002340| 63 74 2c 20 79 6f 75 20 | 77 6f 75 6c 64 20 6e 65 |ct, you |would ne|
|00002350| 65 64 20 74 6f 20 66 69 | 72 73 74 20 63 68 65 63 |ed to fi|rst chec|
|00002360| 6b 20 74 6f 20 6d 61 6b | 65 20 73 75 72 65 20 79 |k to mak|e sure y|
|00002370| 6f 75 20 77 65 72 65 6e | d5 74 20 72 75 6e 6e 69 |ou weren|.t runni|
|00002380| 6e 67 20 6f 6e 20 36 34 | 4b 20 52 4f 4d 73 20 28 |ng on 64|K ROMs (|
|00002390| 73 65 65 20 62 65 6c 6f | 77 29 2e 0d 59 6f 75 20 |see belo|w)..You |
|000023a0| 63 61 6e 20 67 65 74 20 | 74 68 65 20 74 72 61 70 |can get |the trap|
|000023b0| 20 6e 75 6d 62 65 72 20 | 6f 66 20 74 68 65 20 74 | number |of the t|
|000023c0| 72 61 70 20 79 6f 75 20 | 77 69 73 68 20 74 6f 20 |rap you |wish to |
|000023d0| 74 65 73 74 20 66 6f 72 | 20 66 72 6f 6d 20 49 6e |test for| from In|
|000023e0| 73 69 64 65 20 4d 61 63 | 69 6e 74 6f 73 68 20 28 |side Mac|intosh (|
|000023f0| 41 70 70 65 6e 64 69 78 | 20 43 20 6f 66 20 56 6f |Appendix| C of Vo|
|00002400| 6c 75 6d 65 73 20 49 2d | 49 49 49 20 61 6e 64 20 |lumes I-|III and |
|00002410| 41 70 70 65 6e 64 69 78 | 20 42 20 6f 66 20 56 6f |Appendix| B of Vo|
|00002420| 6c 75 6d 65 20 49 56 29 | 2e 20 20 59 6f 75 20 63 |lume IV)|. You c|
|00002430| 61 6e 20 74 65 6c 6c 20 | 69 66 20 74 68 65 20 74 |an tell |if the t|
|00002440| 72 61 70 20 69 73 20 61 | 6e 20 4f 53 54 72 61 70 |rap is a|n OSTrap|
|00002450| 20 6f 72 20 61 20 54 6f | 6f 6c 54 72 61 70 20 62 | or a To|olTrap b|
|00002460| 79 20 63 68 65 63 6b 69 | 6e 67 20 74 6f 20 73 65 |y checki|ng to se|
|00002470| 65 20 69 66 20 62 69 74 | 20 31 31 20 69 6e 20 74 |e if bit| 11 in t|
|00002480| 68 65 20 74 72 61 70 20 | 77 6f 72 64 20 69 73 20 |he trap |word is |
|00002490| 73 65 74 2c 20 74 68 61 | 74 20 69 73 2c 20 74 72 |set, tha|t is, tr|
|000024a0| 61 70 73 20 6c 69 6b 65 | 20 24 41 38 78 78 20 28 |aps like| $A8xx (|
|000024b0| 6f 72 20 24 41 39 78 78 | 20 6f 72 20 24 41 41 78 |or $A9xx| or $AAx|
|000024c0| 78 29 20 74 68 61 74 20 | 68 61 76 65 20 74 68 65 |x) that |have the|
|000024d0| 20 d2 38 d3 20 63 6f 6d | 70 6f 6e 65 6e 74 20 73 | .8. com|ponent s|
|000024e0| 65 74 2c 20 61 72 65 20 | 54 6f 6f 6c 54 72 61 70 |et, are |ToolTrap|
|000024f0| 73 20 61 6e 64 20 74 72 | 61 70 73 20 74 68 61 74 |s and tr|aps that|
|00002500| 20 64 6f 6e d5 74 20 28 | 24 41 30 78 78 29 20 61 | don.t (|$A0xx) a|
|00002510| 72 65 20 4f 53 54 72 61 | 70 73 2e 20 54 68 65 20 |re OSTra|ps. The |
|00002520| 74 72 61 70 20 6e 75 6d | 62 65 72 20 74 68 61 74 |trap num|ber that|
|00002530| 20 79 6f 75 20 70 61 73 | 73 20 74 6f 20 4e 47 65 | you pas|s to NGe|
|00002540| 74 54 72 61 70 41 64 64 | 72 65 73 73 20 66 6f 72 |tTrapAdd|ress for|
|00002550| 20 54 6f 6f 6c 54 72 61 | 70 73 20 69 73 20 74 68 | ToolTra|ps is th|
|00002560| 65 20 6c 6f 77 20 31 30 | 20 62 69 74 73 20 6f 66 |e low 10| bits of|
|00002570| 20 74 68 65 20 74 72 61 | 70 20 77 6f 72 64 20 28 | the tra|p word (|
|00002580| 74 68 65 20 74 72 61 70 | 20 6e 75 6d 62 65 72 20 |the trap| number |
|00002590| 66 6f 72 20 50 6f 70 55 | 70 4d 65 6e 75 53 65 6c |for PopU|pMenuSel|
|000025a0| 65 63 74 5b 24 41 38 30 | 42 5d 20 69 73 20 24 30 |ect[$A80|B] is $0|
|000025b0| 30 42 29 2e 20 54 68 65 | 20 74 72 61 70 20 6e 75 |0B). The| trap nu|
|000025c0| 6d 62 65 72 20 74 68 61 | 74 20 79 6f 75 20 70 61 |mber tha|t you pa|
|000025d0| 73 73 20 74 6f 20 4e 47 | 65 74 54 72 61 70 41 64 |ss to NG|etTrapAd|
|000025e0| 64 72 65 73 73 20 66 6f | 72 20 4f 53 54 72 61 70 |dress fo|r OSTrap|
|000025f0| 73 20 69 73 20 74 68 65 | 20 6c 6f 77 20 38 20 62 |s is the| low 8 b|
|00002600| 69 74 73 20 6f 66 20 74 | 68 65 20 74 72 61 70 20 |its of t|he trap |
|00002610| 77 6f 72 64 20 28 74 68 | 65 20 74 72 61 70 20 6e |word (th|e trap n|
|00002620| 75 6d 62 65 72 20 66 6f | 72 20 4d 6f 76 65 48 48 |umber fo|r MoveHH|
|00002630| 69 5b 24 41 30 36 34 5d | 20 69 73 20 24 30 36 34 |i[$A064]| is $064|
|00002640| 29 2e 0d 53 68 75 74 64 | 6f 77 6e 20 28 24 41 38 |)..Shutd|own ($A8|
|00002650| 39 35 29 20 69 73 20 6a | 75 73 74 20 61 6e 20 65 |95) is j|ust an e|
|00002660| 78 61 6d 70 6c 65 20 6f | 66 20 61 20 74 72 61 70 |xample o|f a trap|
|00002670| 20 74 68 61 74 20 77 65 | 20 6d 69 67 68 74 20 6e | that we| might n|
|00002680| 65 65 64 20 74 6f 20 63 | 68 65 63 6b 20 62 65 66 |eed to c|heck bef|
|00002690| 6f 72 65 20 63 61 6c 6c | 69 6e 67 2e 20 20 4d 6f |ore call|ing. Mo|
|000026a0| 73 74 20 61 70 70 6c 69 | 63 61 74 69 6f 6e 73 20 |st appli|cations |
|000026b0| 77 6f 6e d5 74 20 63 61 | 6c 6c 20 53 68 75 74 44 |won.t ca|ll ShutD|
|000026c0| 6f 77 6e 2c 20 73 6f 20 | 74 68 69 73 20 69 73 20 |own, so |this is |
|000026d0| 6a 75 73 74 20 61 6e 20 | 65 78 61 6d 70 6c 65 20 |just an |example |
|000026e0| 6f 66 20 68 6f 77 20 74 | 6f 20 64 6f 20 74 68 65 |of how t|o do the|
|000026f0| 20 74 65 73 74 69 6e 67 | 2e 0d 46 75 72 74 68 65 | testing|..Furthe|
|00002700| 72 20 52 65 66 65 72 65 | 6e 63 65 3a 0d a5 09 4f |r Refere|nce:...O|
|00002710| 70 65 72 61 74 69 6e 67 | 20 53 79 73 74 65 6d 20 |perating| System |
|00002720| 55 74 69 6c 69 74 69 65 | 73 0d a5 09 41 73 73 65 |Utilitie|s...Asse|
|00002730| 6d 62 6c 79 20 4c 61 6e | 67 75 61 67 65 0d a5 09 |mbly Lan|guage...|
|00002740| 4d 2e 4f 56 2e 47 65 73 | 74 61 6c 74 53 79 73 65 |M.OV.Ges|taltSyse|
|00002750| 6e 76 69 72 6f 6e 73 0d | 4f 56 20 33 20 2d 20 43 |nvirons.|OV 3 - C|
|00002760| 6f 6d 70 61 74 69 62 69 | 6c 69 74 79 20 47 75 69 |ompatibi|lity Gui|
|00002770| 64 65 6c 69 6e 65 73 0d | 4f 76 65 72 76 69 65 77 |delines.|Overview|
|00002780| 09 0d 52 65 76 69 73 65 | 64 20 62 79 3a 09 4c 6f |..Revise|d by:.Lo|
|00002790| 75 65 6c 6c 61 20 50 69 | 7a 7a 75 74 69 09 46 65 |uella Pi|zzuti.Fe|
|000027a0| 62 72 75 61 72 79 20 20 | 31 39 38 37 0d 57 72 69 |bruary |1987.Wri|
|000027b0| 74 74 65 6e 20 62 79 3a | 09 43 61 72 79 20 43 6c |tten by:|.Cary Cl|
|000027c0| 61 72 6b 20 09 4a 61 6e | 75 61 72 79 20 31 39 38 |ark .Jan|uary 198|
|000027d0| 36 0d 09 09 53 63 6f 74 | 74 20 4b 6e 61 73 74 65 |6...Scot|t Knaste|
|000027e0| 72 20 09 0d 41 70 70 6c | 65 20 68 61 73 20 6d 61 |r ..Appl|e has ma|
|000027f0| 6e 79 20 65 6e 68 61 6e | 63 65 6d 65 6e 74 73 20 |ny enhan|cements |
|00002800| 70 6c 61 6e 6e 65 64 20 | 66 6f 72 20 74 68 65 20 |planned |for the |
|00002810| 4d 61 63 69 6e 74 6f 73 | 68 20 66 61 6d 69 6c 79 |Macintos|h family|
|00002820| 20 6f 66 20 63 6f 6d 70 | 75 74 65 72 73 2e 20 54 | of comp|uters. T|
|00002830| 6f 20 68 65 6c 70 20 65 | 6e 73 75 72 65 20 79 6f |o help e|nsure yo|
|00002840| 75 72 20 73 6f 66 74 77 | 61 72 65 d5 73 20 63 6f |ur softw|are.s co|
|00002850| 6d 70 61 74 69 62 69 6c | 69 74 79 20 77 69 74 68 |mpatibil|ity with|
|00002860| 20 74 68 65 73 65 20 65 | 6e 68 61 6e 63 65 6d 65 | these e|nhanceme|
|00002870| 6e 74 73 2c 20 63 68 65 | 63 6b 20 65 61 63 68 20 |nts, che|ck each |
|00002880| 69 74 65 6d 20 69 6e 20 | 74 68 69 73 20 6e 6f 74 |item in |this not|
|00002890| 65 20 74 6f 20 62 65 20 | 73 75 72 65 20 74 68 61 |e to be |sure tha|
|000028a0| 74 20 79 6f 75 d5 72 65 | 20 66 6f 6c 6c 6f 77 69 |t you.re| followi|
|000028b0| 6e 67 20 74 68 65 20 72 | 65 63 6f 6d 6d 65 6e 64 |ng the r|ecommend|
|000028c0| 61 74 69 6f 6e 73 2e 0d | 49 66 20 79 6f 75 72 20 |ations..|If your |
|000028d0| 73 6f 66 74 77 61 72 65 | 20 69 73 20 77 72 69 74 |software| is writ|
|000028e0| 74 65 6e 20 69 6e 20 61 | 20 68 69 67 68 2d 6c 65 |ten in a| high-le|
|000028f0| 76 65 6c 20 6c 61 6e 67 | 75 61 67 65 20 6c 69 6b |vel lang|uage lik|
|00002900| 65 20 50 61 73 63 61 6c | 20 6f 72 20 43 20 61 6e |e Pascal| or C an|
|00002910| 64 20 69 66 20 79 6f 75 | 20 61 64 68 65 72 65 20 |d if you| adhere |
|00002920| 74 6f 20 74 68 65 20 67 | 75 69 64 65 6c 69 6e 65 |to the g|uideline|
|00002930| 73 20 6c 69 73 74 65 64 | 20 69 6e 20 49 6e 73 69 |s listed| in Insi|
|00002940| 64 65 20 4d 61 63 69 6e | 74 6f 73 68 2c 20 6d 61 |de Macin|tosh, ma|
|00002950| 6e 79 20 6f 66 20 74 68 | 65 20 71 75 65 73 74 69 |ny of th|e questi|
|00002960| 6f 6e 73 20 69 6e 20 74 | 68 69 73 20 6e 6f 74 65 |ons in t|his note|
|00002970| 20 77 6f 6e d5 74 20 63 | 6f 6e 63 65 72 6e 20 79 | won.t c|oncern y|
|00002980| 6f 75 2e 20 49 66 20 79 | 6f 75 20 64 65 76 65 6c |ou. If y|ou devel|
|00002990| 6f 70 20 69 6e 20 61 73 | 73 65 6d 62 6c 79 20 6c |op in as|sembly l|
|000029a0| 61 6e 67 75 61 67 65 2c | 20 79 6f 75 20 73 68 6f |anguage,| you sho|
|000029b0| 75 6c 64 20 72 65 61 64 | 20 65 61 63 68 20 71 75 |uld read| each qu|
|000029c0| 65 73 74 69 6f 6e 20 63 | 61 72 65 66 75 6c 6c 79 |estion c|arefully|
|000029d0| 2e 20 49 66 20 79 6f 75 | 20 61 6e 73 77 65 72 20 |. If you| answer |
|000029e0| 61 6e 79 20 71 75 65 73 | 74 69 6f 6e 20 d2 79 65 |any ques|tion .ye|
|000029f0| 73 2c d3 20 79 6f 75 72 | 20 73 6f 66 74 77 61 72 |s,. your| softwar|
|00002a00| 65 20 6d 61 79 20 65 6e | 63 6f 75 6e 74 65 72 20 |e may en|counter |
|00002a10| 64 69 66 66 69 63 75 6c | 74 79 20 72 75 6e 6e 69 |difficul|ty runni|
|00002a20| 6e 67 20 6f 6e 20 66 75 | 74 75 72 65 20 4d 61 63 |ng on fu|ture Mac|
|00002a30| 69 6e 74 6f 73 68 20 63 | 6f 6d 70 75 74 65 72 73 |intosh c|omputers|
|00002a40| 2c 20 61 6e 64 20 79 6f | 75 20 73 68 6f 75 6c 64 |, and yo|u should|
|00002a50| 20 74 61 6b 65 20 74 68 | 65 20 72 65 63 6f 6d 6d | take th|e recomm|
|00002a60| 65 6e 64 65 64 20 61 63 | 74 69 6f 6e 20 74 6f 20 |ended ac|tion to |
|00002a70| 63 68 61 6e 67 65 20 79 | 6f 75 72 20 73 6f 66 74 |change y|our soft|
|00002a80| 77 61 72 65 2e 0d 44 6f | 20 79 6f 75 20 64 65 70 |ware..Do| you dep|
|00002a90| 65 6e 64 20 6f 6e 20 36 | 38 30 30 30 20 69 6e 73 |end on 6|8000 ins|
|00002aa0| 74 72 75 63 74 69 6f 6e | 73 20 77 68 69 63 68 20 |truction|s which |
|00002ab0| 72 65 71 75 69 72 65 20 | 74 68 61 74 20 74 68 65 |require |that the|
|00002ac0| 20 70 72 6f 63 65 73 73 | 6f 72 20 62 65 20 69 6e | process|or be in|
|00002ad0| 20 73 75 70 65 72 76 69 | 73 6f 72 20 6d 6f 64 65 | supervi|sor mode|
|00002ae0| 3f 0d 49 6e 20 67 65 6e | 65 72 61 6c 2c 20 79 6f |?.In gen|eral, yo|
|00002af0| 75 72 20 73 6f 66 74 77 | 61 72 65 20 73 68 6f 75 |ur softw|are shou|
|00002b00| 6c 64 20 6e 6f 74 20 69 | 6e 63 6c 75 64 65 20 69 |ld not i|nclude i|
|00002b10| 6e 73 74 72 75 63 74 69 | 6f 6e 73 20 77 68 69 63 |nstructi|ons whic|
|00002b20| 68 20 64 65 70 65 6e 64 | 20 6f 6e 20 73 75 70 65 |h depend| on supe|
|00002b30| 72 76 69 73 6f 72 20 6d | 6f 64 65 2e 20 54 68 65 |rvisor m|ode. The|
|00002b40| 73 65 20 69 6e 63 6c 75 | 64 65 20 6d 6f 64 69 66 |se inclu|de modif|
|00002b50| 79 69 6e 67 20 74 68 65 | 20 63 6f 6e 74 65 6e 74 |ying the| content|
|00002b60| 73 20 6f 66 20 74 68 65 | 20 73 74 61 74 75 73 20 |s of the| status |
|00002b70| 72 65 67 69 73 74 65 72 | 2e 20 4d 6f 73 74 20 70 |register|. Most p|
|00002b80| 72 6f 67 72 61 6d 73 20 | 77 68 69 63 68 20 6d 6f |rograms |which mo|
|00002b90| 64 69 66 79 20 74 68 65 | 20 73 74 61 74 75 73 20 |dify the| status |
|00002ba0| 72 65 67 69 73 74 65 72 | 20 61 72 65 20 6f 6e 6c |register| are onl|
|00002bb0| 79 20 63 68 61 6e 67 69 | 6e 67 20 74 68 65 20 43 |y changi|ng the C|
|00002bc0| 6f 6e 64 69 74 69 6f 6e | 20 43 6f 64 65 20 52 65 |ondition| Code Re|
|00002bd0| 67 69 73 74 65 72 20 28 | 43 43 52 29 20 68 61 6c |gister (|CCR) hal|
|00002be0| 66 20 6f 66 20 74 68 65 | 20 73 74 61 74 75 73 20 |f of the| status |
|00002bf0| 72 65 67 69 73 74 65 72 | 2c 20 73 6f 20 61 6e 20 |register|, so an |
|00002c00| 69 6e 73 74 72 75 63 74 | 69 6f 6e 20 77 68 69 63 |instruct|ion whic|
|00002c10| 68 20 61 64 64 72 65 73 | 73 65 73 20 74 68 65 20 |h addres|ses the |
|00002c20| 43 43 52 20 77 69 6c 6c | 20 77 6f 72 6b 20 66 69 |CCR will| work fi|
|00002c30| 6e 65 2e 20 41 6c 73 6f | 2c 20 79 6f 75 72 20 73 |ne. Also|, your s|
|00002c40| 6f 66 74 77 61 72 65 20 | 73 68 6f 75 6c 64 20 6e |oftware |should n|
|00002c50| 6f 74 20 75 73 65 20 74 | 68 65 20 55 73 65 72 20 |ot use t|he User |
|00002c60| 53 74 61 63 6b 20 50 6f | 69 6e 74 65 72 20 28 55 |Stack Po|inter (U|
|00002c70| 53 50 29 20 6f 72 20 74 | 75 72 6e 20 69 6e 74 65 |SP) or t|urn inte|
|00002c80| 72 72 75 70 74 73 20 6f | 6e 20 61 6e 64 20 6f 66 |rrupts o|n and of|
|00002c90| 66 2e 0d 44 6f 20 79 6f | 75 20 68 61 76 65 20 63 |f..Do yo|u have c|
|00002ca0| 6f 64 65 20 77 68 69 63 | 68 20 65 78 65 63 75 74 |ode whic|h execut|
|00002cb0| 65 73 20 69 6e 20 72 65 | 73 70 6f 6e 73 65 20 74 |es in re|sponse t|
|00002cc0| 6f 20 61 6e 20 65 78 63 | 65 70 74 69 6f 6e 20 61 |o an exc|eption a|
|00002cd0| 6e 64 20 72 65 6c 69 65 | 73 20 6f 6e 20 74 68 65 |nd relie|s on the|
|00002ce0| 20 70 6f 73 69 74 69 6f | 6e 20 6f 66 20 64 61 74 | positio|n of dat|
|00002cf0| 61 20 69 6e 20 74 68 65 | 20 65 78 63 65 70 74 69 |a in the| excepti|
|00002d00| 6f 6e d5 73 20 6c 6f 63 | 61 6c 20 73 74 61 63 6b |on.s loc|al stack|
|00002d10| 20 66 72 61 6d 65 3f 0d | 45 78 63 65 70 74 69 6f | frame?.|Exceptio|
|00002d20| 6e 20 73 74 61 63 6b 20 | 66 72 61 6d 65 73 20 76 |n stack |frames v|
|00002d30| 61 72 79 20 6f 6e 20 64 | 69 66 66 65 72 65 6e 74 |ary on d|ifferent|
|00002d40| 20 6d 69 63 72 6f 70 72 | 6f 63 65 73 73 6f 72 73 | micropr|ocessors|
|00002d50| 20 69 6e 20 74 68 65 20 | 36 38 30 30 30 20 66 61 | in the |68000 fa|
|00002d60| 6d 69 6c 79 2c 20 73 6f | 6d 65 20 6f 66 20 77 68 |mily, so|me of wh|
|00002d70| 69 63 68 20 6d 61 79 20 | 62 65 20 75 73 65 64 20 |ich may |be used |
|00002d80| 69 6e 20 66 75 74 75 72 | 65 20 4d 61 63 69 6e 74 |in futur|e Macint|
|00002d90| 6f 73 68 20 63 6f 6d 70 | 75 74 65 72 73 2e 20 59 |osh comp|uters. Y|
|00002da0| 6f 75 20 73 68 6f 75 6c | 64 20 61 76 6f 69 64 20 |ou shoul|d avoid |
|00002db0| 75 73 69 6e 67 20 74 68 | 65 20 54 52 41 50 20 69 |using th|e TRAP i|
|00002dc0| 6e 73 74 72 75 63 74 69 | 6f 6e 2e 20 0d 4e 6f 74 |nstructi|on. .Not|
|00002dd0| 65 3a 20 59 6f 75 20 63 | 61 6e 20 64 65 74 65 72 |e: You c|an deter|
|00002de0| 6d 69 6e 65 20 77 68 69 | 63 68 20 6d 69 63 72 6f |mine whi|ch micro|
|00002df0| 70 72 6f 63 65 73 73 6f | 72 20 69 73 20 69 6e 73 |processo|r is ins|
|00002e00| 74 61 6c 6c 65 64 20 62 | 79 20 65 78 61 6d 69 6e |talled b|y examin|
|00002e10| 69 6e 67 20 74 68 65 20 | 6c 6f 77 2d 6d 65 6d 6f |ing the |low-memo|
|00002e20| 72 79 20 67 6c 6f 62 61 | 6c 20 43 50 55 46 6c 61 |ry globa|l CPUFla|
|00002e30| 67 20 28 61 20 62 79 74 | 65 20 61 74 20 24 31 32 |g (a byt|e at $12|
|00002e40| 46 29 2e 20 54 68 65 73 | 65 20 61 72 65 20 74 68 |F). Thes|e are th|
|00002e50| 65 20 76 61 6c 75 65 73 | 3a 0d 09 43 50 55 46 6c |e values|:..CPUFl|
|00002e60| 61 67 09 6d 69 63 72 6f | 70 72 6f 63 65 73 73 6f |ag.micro|processo|
|00002e70| 72 0d 09 ca ca 24 30 30 | 09 09 36 38 30 30 30 0d |r....$00|..68000.|
|00002e80| 09 ca ca 24 30 31 09 09 | 36 38 30 31 30 0d 09 ca |...$01..|68010...|
|00002e90| ca 24 30 32 09 09 36 38 | 30 32 30 0d 09 ca ca 24 |.$02..68|020....$|
|00002ea0| 30 33 09 09 36 38 30 33 | 30 0d 44 6f 20 79 6f 75 |03..6803|0.Do you|
|00002eb0| 20 75 73 65 20 6c 6f 77 | 2d 6d 65 6d 6f 72 79 20 | use low|-memory |
|00002ec0| 67 6c 6f 62 61 6c 73 20 | 6e 6f 74 20 64 6f 63 75 |globals |not docu|
|00002ed0| 6d 65 6e 74 65 64 20 69 | 6e 20 49 6e 73 69 64 65 |mented i|n Inside|
|00002ee0| 20 4d 61 63 69 6e 74 6f | 73 68 3f 0d 4f 74 68 65 | Macinto|sh?.Othe|
|00002ef0| 72 20 6d 69 63 72 6f 70 | 72 6f 63 65 73 73 6f 72 |r microp|rocessor|
|00002f00| 73 20 69 6e 20 74 68 65 | 20 36 38 30 30 30 20 66 |s in the| 68000 f|
|00002f10| 61 6d 69 6c 79 20 75 73 | 65 20 74 68 65 20 65 78 |amily us|e the ex|
|00002f20| 63 65 70 74 69 6f 6e 20 | 76 65 63 74 6f 72 73 20 |ception |vectors |
|00002f30| 69 6e 20 6c 6f 63 61 74 | 69 6f 6e 73 20 24 30 20 |in locat|ions $0 |
|00002f40| 74 68 72 6f 75 67 68 20 | 24 46 46 20 69 6e 20 64 |through |$FF in d|
|00002f50| 69 66 66 65 72 65 6e 74 | 20 77 61 79 73 2e 20 4e |ifferent| ways. N|
|00002f60| 6f 20 75 6e 64 6f 63 75 | 6d 65 6e 74 65 64 20 6c |o undocu|mented l|
|00002f70| 6f 63 61 74 69 6f 6e 20 | 62 65 6c 6f 77 20 74 68 |ocation |below th|
|00002f80| 65 20 73 79 73 74 65 6d | 20 68 65 61 70 20 28 24 |e system| heap ($|
|00002f90| 31 30 30 20 74 68 72 6f | 75 67 68 20 24 31 33 46 |100 thro|ugh $13F|
|00002fa0| 46 29 20 69 73 20 67 75 | 61 72 61 6e 74 65 65 64 |F) is gu|aranteed|
|00002fb0| 20 74 6f 20 62 65 20 61 | 76 61 69 6c 61 62 6c 65 | to be a|vailable|
|00002fc0| 20 66 6f 72 20 75 73 65 | 20 69 6e 20 66 75 74 75 | for use| in futu|
|00002fd0| 72 65 20 73 79 73 74 65 | 6d 73 2e 0d 44 6f 20 79 |re syste|ms..Do y|
|00002fe0| 6f 75 20 6d 61 6b 65 20 | 61 73 73 75 6d 70 74 69 |ou make |assumpti|
|00002ff0| 6f 6e 73 20 61 62 6f 75 | 74 20 74 68 65 20 66 69 |ons abou|t the fi|
|00003000| 6c 65 20 73 79 73 74 65 | 6d 20 77 68 69 63 68 20 |le syste|m which |
|00003010| 61 72 65 20 6e 6f 74 20 | 63 6f 6e 73 69 73 74 65 |are not |consiste|
|00003020| 6e 74 20 77 69 74 68 20 | 62 6f 74 68 20 74 68 65 |nt with |both the|
|00003030| 20 6f 72 69 67 69 6e 61 | 6c 20 4d 61 63 69 6e 74 | origina|l Macint|
|00003040| 6f 73 68 20 46 69 6c 65 | 20 53 79 73 74 65 6d 20 |osh File| System |
|00003050| 61 6e 64 20 74 68 65 20 | 48 69 65 72 61 72 63 68 |and the |Hierarch|
|00003060| 69 63 61 6c 20 46 69 6c | 65 20 53 79 73 74 65 6d |ical Fil|e System|
|00003070| 3f 0d 59 6f 75 72 20 61 | 70 70 6c 69 63 61 74 69 |?.Your a|pplicati|
|00003080| 6f 6e 73 20 73 68 6f 75 | 6c 64 20 62 65 20 63 6f |ons shou|ld be co|
|00003090| 6d 70 61 74 69 62 6c 65 | 20 77 69 74 68 20 62 6f |mpatible| with bo|
|000030a0| 74 68 20 66 69 6c 65 20 | 73 79 73 74 65 6d 73 2e |th file |systems.|
|000030b0| 20 54 68 65 20 65 61 73 | 69 65 73 74 20 77 61 79 | The eas|iest way|
|000030c0| 20 74 6f 20 64 6f 20 74 | 68 69 73 20 69 73 20 74 | to do t|his is t|
|000030d0| 6f 20 73 74 69 63 6b 20 | 74 6f 20 74 68 65 20 6f |o stick |to the o|
|000030e0| 6c 64 20 66 69 6c 65 73 | 20 73 79 73 74 65 6d 20 |ld files| system |
|000030f0| 74 72 61 70 20 63 61 6c | 6c 73 20 28 77 68 69 63 |trap cal|ls (whic|
|00003100| 68 20 77 6f 72 6b 20 77 | 69 74 68 20 62 6f 74 68 |h work w|ith both|
|00003110| 20 66 69 6c 65 20 73 79 | 73 74 65 6d 73 29 20 61 | file sy|stems) a|
|00003120| 6e 64 20 61 76 6f 69 64 | 20 64 69 72 65 63 74 20 |nd avoid| direct |
|00003130| 6d 61 6e 69 70 75 6c 61 | 74 69 6f 6e 20 6f 66 20 |manipula|tion of |
|00003140| 64 61 74 61 20 73 74 72 | 75 63 74 75 72 65 73 20 |data str|uctures |
|00003150| 73 75 63 68 20 61 73 20 | 66 69 6c 65 20 63 6f 6e |such as |file con|
|00003160| 74 72 6f 6c 20 62 6c 6f | 63 6b 73 20 61 6e 64 20 |trol blo|cks and |
|00003170| 76 6f 6c 75 6d 65 20 63 | 6f 6e 74 72 6f 6c 20 62 |volume c|ontrol b|
|00003180| 6c 6f 63 6b 73 20 77 68 | 65 6e 65 76 65 72 20 70 |locks wh|enever p|
|00003190| 6f 73 73 69 62 6c 65 2e | 0d 44 6f 20 79 6f 75 20 |ossible.|.Do you |
|000031a0| 64 65 70 65 6e 64 20 6f | 6e 20 74 68 65 20 73 79 |depend o|n the sy|
|000031b0| 73 74 65 6d 20 6f 72 20 | 61 70 70 6c 69 63 61 74 |stem or |applicat|
|000031c0| 69 6f 6e 20 68 65 61 70 | 73 20 73 74 61 72 74 69 |ion heap|s starti|
|000031d0| 6e 67 20 61 74 20 61 20 | 68 61 72 64 2d 63 6f 64 |ng at a |hard-cod|
|000031e0| 65 64 20 61 64 64 72 65 | 73 73 3f 0d 54 68 65 20 |ed addre|ss?.The |
|000031f0| 73 74 61 72 74 69 6e 67 | 20 61 64 64 72 65 73 73 |starting| address|
|00003200| 65 73 20 61 6e 64 20 74 | 68 65 20 73 69 7a 65 20 |es and t|he size |
|00003210| 6f 66 20 74 68 65 20 73 | 79 73 74 65 6d 20 61 6e |of the s|ystem an|
|00003220| 64 20 61 70 70 6c 69 63 | 61 74 69 6f 6e 20 68 65 |d applic|ation he|
|00003230| 61 70 73 20 68 61 73 20 | 61 6c 72 65 61 64 79 20 |aps has |already |
|00003240| 63 68 61 6e 67 65 64 20 | 28 4d 61 63 69 6e 74 6f |changed |(Macinto|
|00003250| 73 68 20 76 73 2e 20 4d | 61 63 69 6e 74 6f 73 68 |sh vs. M|acintosh|
|00003260| 20 50 6c 75 73 29 20 61 | 6e 64 20 77 69 6c 6c 20 | Plus) a|nd will |
|00003270| 63 68 61 6e 67 65 20 61 | 67 61 69 6e 20 69 6e 20 |change a|gain in |
|00003280| 74 68 65 20 66 75 74 75 | 72 65 2e 20 55 73 65 20 |the futu|re. Use |
|00003290| 74 68 65 20 67 6c 6f 62 | 61 6c 20 41 70 70 6c 5a |the glob|al ApplZ|
|000032a0| 6f 6e 65 20 74 6f 20 66 | 69 6e 64 20 74 68 65 20 |one to f|ind the |
|000032b0| 61 70 70 6c 69 63 61 74 | 69 6f 6e 20 68 65 61 70 |applicat|ion heap|
|000032c0| 20 61 6e 64 20 53 79 73 | 5a 6f 6e 65 20 74 6f 20 | and Sys|Zone to |
|000032d0| 66 69 6e 64 20 74 68 65 | 20 73 79 73 74 65 6d 20 |find the| system |
|000032e0| 68 65 61 70 2e 20 41 6c | 73 6f 2c 20 64 6f 6e d5 |heap. Al|so, don.|
|000032f0| 74 20 63 6f 75 6e 74 20 | 6f 6e 20 74 68 65 20 61 |t count |on the a|
|00003300| 70 70 6c 69 63 61 74 69 | 6f 6e 20 68 65 61 70 20 |pplicati|on heap |
|00003310| 7a 6f 6e 65 20 73 74 61 | 72 74 69 6e 67 20 61 74 |zone sta|rting at|
|00003320| 20 61 6e 20 61 64 64 72 | 65 73 73 20 6c 65 73 73 | an addr|ess less|
|00003330| 20 74 68 61 6e 20 36 35 | 35 33 36 20 28 74 68 61 | than 65|536 (tha|
|00003340| 74 20 69 73 2c 20 61 20 | 73 79 73 74 65 6d 20 68 |t is, a |system h|
|00003350| 65 61 70 20 73 6d 61 6c | 6c 65 72 20 74 68 61 6e |eap smal|ler than|
|00003360| 20 36 34 4b 29 2e 0d 44 | 6f 20 79 6f 75 20 6c 6f | 64K)..D|o you lo|
|00003370| 6f 6b 20 74 68 72 6f 75 | 67 68 20 74 68 65 20 73 |ok throu|gh the s|
|00003380| 79 73 74 65 6d d5 73 20 | 71 75 65 75 65 73 20 64 |ystem.s |queues d|
|00003390| 69 72 65 63 74 6c 79 3f | 0d 49 6e 20 67 65 6e 65 |irectly?|.In gene|
|000033a0| 72 61 6c 2c 20 79 6f 75 | 20 73 68 6f 75 6c 64 20 |ral, you| should |
|000033b0| 61 76 6f 69 64 20 65 78 | 61 6d 69 6e 69 6e 67 20 |avoid ex|amining |
|000033c0| 71 75 65 75 65 20 65 6c | 65 6d 65 6e 74 73 20 64 |queue el|ements d|
|000033d0| 69 72 65 63 74 6c 79 2e | 20 49 6e 73 74 65 61 64 |irectly.| Instead|
|000033e0| 2c 20 75 73 65 20 74 68 | 65 20 4f 70 65 72 61 74 |, use th|e Operat|
|000033f0| 69 6e 67 20 53 79 73 74 | 65 6d 20 63 61 6c 6c 73 |ing Syst|em calls|
|00003400| 20 74 6f 20 6d 61 6e 69 | 70 75 6c 61 74 65 20 71 | to mani|pulate q|
|00003410| 75 65 75 65 20 65 6c 65 | 6d 65 6e 74 73 2e 0d 44 |ueue ele|ments..D|
|00003420| 6f 20 79 6f 75 20 64 69 | 72 65 63 74 6c 79 20 61 |o you di|rectly a|
|00003430| 64 64 72 65 73 73 20 6d | 65 6d 6f 72 79 2d 6d 61 |ddress m|emory-ma|
|00003440| 70 70 65 64 20 68 61 72 | 64 77 61 72 65 20 73 75 |pped har|dware su|
|00003450| 63 68 20 61 73 20 74 68 | 65 20 56 49 41 2c 20 74 |ch as th|e VIA, t|
|00003460| 68 65 20 53 43 43 2c 20 | 6f 72 20 74 68 65 20 49 |he SCC, |or the I|
|00003470| 57 4d 3f 0d 59 6f 75 20 | 73 68 6f 75 6c 64 20 61 |WM?.You |should a|
|00003480| 76 6f 69 64 20 61 63 63 | 65 73 73 69 6e 67 20 74 |void acc|essing t|
|00003490| 68 69 73 20 6d 65 6d 6f | 72 79 20 64 69 72 65 63 |his memo|ry direc|
|000034a0| 74 6c 79 20 61 6e 64 20 | 75 73 65 20 74 72 61 70 |tly and |use trap|
|000034b0| 20 63 61 6c 6c 73 20 69 | 6e 73 74 65 61 64 20 28 | calls i|nstead (|
|000034c0| 64 69 73 6b 20 64 72 69 | 76 65 72 2c 20 73 65 72 |disk dri|ver, ser|
|000034d0| 69 61 6c 20 64 72 69 76 | 65 72 2c 20 65 74 63 2e |ial driv|er, etc.|
|000034e0| 29 2e 20 46 75 74 75 72 | 65 20 6d 61 63 68 69 6e |). Futur|e machin|
|000034f0| 65 73 20 6d 61 79 20 69 | 6e 63 6c 75 64 65 20 61 |es may i|nclude a|
|00003500| 20 6d 65 6d 6f 72 79 20 | 6d 61 6e 61 67 65 6d 65 | memory |manageme|
|00003510| 6e 74 20 75 6e 69 74 20 | 28 4d 4d 55 29 20 77 68 |nt unit |(MMU) wh|
|00003520| 69 63 68 20 6d 61 79 20 | 70 72 65 76 65 6e 74 20 |ich may |prevent |
|00003530| 61 63 63 65 73 73 20 74 | 6f 20 6d 65 6d 6f 72 79 |access t|o memory|
|00003540| 2d 6d 61 70 70 65 64 20 | 68 61 72 64 77 61 72 65 |-mapped |hardware|
|00003550| 2e 20 41 6c 73 6f 2c 20 | 74 68 65 73 65 20 6d 65 |. Also, |these me|
|00003560| 6d 6f 72 79 2d 6d 61 70 | 70 65 64 20 64 65 76 69 |mory-map|ped devi|
|00003570| 63 65 73 20 6d 61 79 20 | 6e 6f 74 20 62 65 20 70 |ces may |not be p|
|00003580| 72 65 73 65 6e 74 20 6f | 6e 20 66 75 74 75 72 65 |resent o|n future|
|00003590| 20 6d 61 63 68 69 6e 65 | 73 2e 20 54 68 65 20 61 | machine|s. The a|
|000035a0| 64 64 72 65 73 73 65 73 | 20 6f 66 20 74 68 65 73 |ddresses| of thes|
|000035b0| 65 20 64 65 76 69 63 65 | 73 20 61 72 65 20 6c 69 |e device|s are li|
|000035c0| 6b 65 6c 79 20 74 6f 20 | 63 68 61 6e 67 65 2c 20 |kely to |change, |
|000035d0| 73 6f 20 69 66 20 79 6f | 75 20 6d 75 73 74 20 61 |so if yo|u must a|
|000035e0| 63 63 65 73 73 20 74 68 | 65 20 68 61 72 64 77 61 |ccess th|e hardwa|
|000035f0| 72 65 20 64 69 72 65 63 | 74 6c 79 2c 20 67 65 74 |re direc|tly, get|
|00003600| 20 74 68 65 20 62 61 73 | 65 20 61 64 64 72 65 73 | the bas|e addres|
|00003610| 73 20 6f 66 20 74 68 65 | 20 64 65 76 69 63 65 20 |s of the| device |
|00003620| 66 72 6f 6d 20 74 68 65 | 20 61 70 70 72 6f 70 72 |from the| appropr|
|00003630| 69 61 74 65 20 6c 6f 77 | 2d 6d 65 6d 6f 72 79 20 |iate low|-memory |
|00003640| 67 6c 6f 62 61 6c 20 28 | 6f 62 74 61 69 6e 61 62 |global (|obtainab|
|00003650| 6c 65 20 66 72 6f 6d 20 | 69 6e 63 6c 75 64 65 73 |le from |includes|
|00003660| 20 61 6e 64 20 69 6e 74 | 65 72 66 61 63 65 20 66 | and int|erface f|
|00003670| 69 6c 65 73 29 3a 0d 09 | 64 65 76 69 63 65 09 09 |iles):..|device..|
|00003680| 67 6c 6f 62 61 6c 09 09 | 0d 09 56 49 41 09 09 24 |global..|..VIA..$|
|00003690| 31 44 34 0d 09 53 43 43 | 52 64 09 09 24 31 44 38 |1D4..SCC|Rd..$1D8|
|000036a0| 0d 09 53 43 43 57 72 09 | 24 31 44 43 0d 09 49 57 |..SCCWr.|$1DC..IW|
|000036b0| 4d 09 09 24 31 45 30 0d | 44 6f 20 79 6f 75 20 61 |M..$1E0.|Do you a|
|000036c0| 73 73 75 6d 65 20 74 68 | 65 20 6c 6f 63 61 74 69 |ssume th|e locati|
|000036d0| 6f 6e 20 6f 72 20 73 69 | 7a 65 20 6f 66 20 74 68 |on or si|ze of th|
|000036e0| 65 20 73 63 72 65 65 6e | 3f 0d 54 68 65 20 6c 6f |e screen|?.The lo|
|000036f0| 63 61 74 69 6f 6e 2c 20 | 73 69 7a 65 2c 20 61 6e |cation, |size, an|
|00003700| 64 20 62 69 74 20 64 65 | 70 74 68 20 6f 66 20 74 |d bit de|pth of t|
|00003710| 68 65 20 73 63 72 65 65 | 6e 20 69 73 20 64 69 66 |he scree|n is dif|
|00003720| 66 65 72 65 6e 74 20 69 | 6e 20 76 61 72 69 6f 75 |ferent i|n variou|
|00003730| 73 20 6d 61 63 68 69 6e | 65 73 2e 20 59 6f 75 20 |s machin|es. You |
|00003740| 63 61 6e 20 64 65 74 65 | 72 6d 69 6e 65 20 69 74 |can dete|rmine it|
|00003750| 73 20 6c 6f 63 61 74 69 | 6f 6e 20 61 6e 64 20 73 |s locati|on and s|
|00003760| 69 7a 65 20 62 79 20 65 | 78 61 6d 69 6e 69 6e 67 |ize by e|xamining|
|00003770| 20 74 68 65 20 51 75 69 | 63 6b 44 72 61 77 20 67 | the Qui|ckDraw g|
|00003780| 6c 6f 62 61 6c 20 76 61 | 72 69 61 62 6c 65 20 73 |lobal va|riable s|
|00003790| 63 72 65 65 6e 42 69 74 | 73 20 6f 6e 20 6d 61 63 |creenBit|s on mac|
|000037a0| 68 69 6e 65 73 20 77 69 | 74 68 6f 75 74 20 43 6f |hines wi|thout Co|
|000037b0| 6c 6f 72 20 51 75 69 63 | 6b 44 72 61 77 2e 20 4f |lor Quic|kDraw. O|
|000037c0| 6e 20 6d 61 63 68 69 6e | 65 73 20 77 69 74 68 20 |n machin|es with |
|000037d0| 43 6f 6c 6f 72 20 51 75 | 69 63 6b 44 72 61 77 2c |Color Qu|ickDraw,|
|000037e0| 20 74 68 65 20 64 65 76 | 69 63 65 20 6c 69 73 74 | the dev|ice list|
|000037f0| 2c 20 64 65 73 63 72 69 | 62 65 64 20 69 6e 20 74 |, descri|bed in t|
|00003800| 68 65 20 47 72 61 70 68 | 69 63 73 20 44 65 76 69 |he Graph|ics Devi|
|00003810| 63 65 73 20 63 68 61 70 | 74 65 72 20 6f 66 20 49 |ces chap|ter of I|
|00003820| 6e 73 69 64 65 20 4d 61 | 63 69 6e 74 6f 73 68 2c |nside Ma|cintosh,|
|00003830| 20 74 65 6c 6c 73 20 74 | 68 65 20 6c 6f 63 61 74 | tells t|he locat|
|00003840| 69 6f 6e 20 61 6e 64 20 | 73 69 7a 65 20 61 6e 64 |ion and |size and|
|00003850| 20 62 69 74 20 64 65 70 | 74 68 20 6f 66 20 65 61 | bit dep|th of ea|
|00003860| 63 68 20 73 63 72 65 65 | 6e 2c 20 73 63 72 65 65 |ch scree|n, scree|
|00003870| 6e 42 69 74 73 20 63 6f | 6e 74 61 69 6e 73 20 74 |nBits co|ntains t|
|00003880| 68 65 20 6c 6f 63 61 74 | 69 6f 6e 20 61 6e 64 20 |he locat|ion and |
|00003890| 73 69 7a 65 20 6f 66 20 | 74 68 65 20 6d 61 69 6e |size of |the main|
|000038a0| 20 64 65 76 69 63 65 2c | 20 61 6e 64 20 47 72 61 | device,| and Gra|
|000038b0| 79 52 67 6e 20 63 6f 6e | 74 61 69 6e 73 20 61 20 |yRgn con|tains a |
|000038c0| 72 65 67 69 6f 6e 20 64 | 65 73 63 72 69 62 69 6e |region d|escribin|
|000038d0| 67 20 74 68 65 20 73 68 | 61 70 65 20 61 6e 64 20 |g the sh|ape and |
|000038e0| 73 69 7a 65 20 6f 66 20 | 74 68 65 20 64 65 73 6b |size of |the desk|
|000038f0| 74 6f 70 2e 0d 44 6f 65 | 73 20 79 6f 75 72 20 73 |top..Doe|s your s|
|00003900| 6f 66 74 77 61 72 65 20 | 66 61 69 6c 20 6f 6e 20 |oftware |fail on |
|00003910| 73 6f 6d 65 20 4d 61 63 | 69 6e 74 6f 73 68 20 6d |some Mac|intosh m|
|00003920| 6f 64 65 6c 73 20 6f 72 | 20 6f 6e 20 41 2f 55 58 |odels or| on A/UX|
|00003930| 3f 0d 49 66 20 73 6f 2c | 20 79 6f 75 20 73 68 6f |?.If so,| you sho|
|00003940| 75 6c 64 20 64 65 74 65 | 72 6d 69 6e 65 20 74 68 |uld dete|rmine th|
|00003950| 65 20 72 65 61 73 6f 6e | 2e 20 46 61 69 6c 75 72 |e reason|. Failur|
|00003960| 65 20 74 6f 20 72 75 6e | 20 6f 6e 20 61 6c 6c 20 |e to run| on all |
|00003970| 76 65 72 73 69 6f 6e 73 | 20 6f 66 20 74 68 65 20 |versions| of the |
|00003980| 4d 61 63 69 6e 74 6f 73 | 68 20 6d 61 79 20 69 6e |Macintos|h may in|
|00003990| 64 69 63 61 74 65 20 70 | 72 6f 62 6c 65 6d 73 20 |dicate p|roblems |
|000039a0| 77 68 69 63 68 20 77 69 | 6c 6c 20 70 72 65 76 65 |which wi|ll preve|
|000039b0| 6e 74 20 79 6f 75 72 20 | 73 6f 66 74 77 61 72 65 |nt your |software|
|000039c0| 20 66 72 6f 6d 20 77 6f | 72 6b 69 6e 67 20 6f 6e | from wo|rking on|
|000039d0| 20 66 75 74 75 72 65 20 | 6d 61 63 68 69 6e 65 73 | future |machines|
|000039e0| 2e 20 46 61 69 6c 74 75 | 72 65 20 74 6f 20 72 75 |. Failtu|re to ru|
|000039f0| 6e 20 6f 6e 20 41 2f 55 | 58 2c 20 41 70 70 6c 65 |n on A/U|X, Apple|
|00003a00| d5 73 20 55 6e 69 78 20 | 66 6f 72 20 74 68 65 20 |.s Unix |for the |
|00003a10| 4d 61 63 69 6e 74 6f 73 | 68 2c 20 61 6c 73 6f 20 |Macintos|h, also |
|00003a20| 6d 61 79 20 69 6e 64 69 | 63 61 74 65 20 73 75 63 |may indi|cate suc|
|00003a30| 68 20 70 72 6f 62 6c 65 | 6d 73 2e 0d 44 6f 20 79 |h proble|ms..Do y|
|00003a40| 6f 75 20 63 68 61 6e 67 | 65 20 6d 61 73 74 65 72 |ou chang|e master|
|00003a50| 20 70 6f 69 6e 74 65 72 | 20 66 6c 61 67 73 20 6f | pointer| flags o|
|00003a60| 66 20 72 65 6c 6f 63 61 | 74 61 62 6c 65 20 62 6c |f reloca|table bl|
|00003a70| 6f 63 6b 73 20 64 69 72 | 65 63 74 6c 79 20 77 69 |ocks dir|ectly wi|
|00003a80| 74 68 20 42 53 45 54 20 | 6f 72 20 42 43 4c 52 20 |th BSET |or BCLR |
|00003a90| 69 6e 73 74 72 75 63 74 | 69 6f 6e 73 3f 0d 49 6e |instruct|ions?.In|
|00003aa0| 20 74 68 65 20 66 75 74 | 75 72 65 20 61 6e 64 20 | the fut|ure and |
|00003ab0| 6f 6e 20 41 2f 55 58 2c | 20 61 6c 6c 20 33 32 20 |on A/UX,| all 32 |
|00003ac0| 62 69 74 73 20 6f 66 20 | 61 20 6d 61 73 74 65 72 |bits of |a master|
|00003ad0| 20 70 6f 69 6e 74 65 72 | 20 6d 61 79 20 62 65 20 | pointer| may be |
|00003ae0| 75 73 65 64 2c 20 77 69 | 74 68 20 74 68 65 20 66 |used, wi|th the f|
|00003af0| 6c 61 67 73 20 62 79 74 | 65 20 6d 6f 76 65 64 20 |lags byt|e moved |
|00003b00| 65 6c 73 65 77 68 65 72 | 65 2e 20 55 73 65 20 74 |elsewher|e. Use t|
|00003b10| 68 65 20 4d 65 6d 6f 72 | 79 20 4d 61 6e 61 67 65 |he Memor|y Manage|
|00003b20| 72 20 63 61 6c 6c 73 20 | 48 50 75 72 67 65 2c 20 |r calls |HPurge, |
|00003b30| 48 4e 6f 50 75 72 67 65 | 2c 20 48 4c 6f 63 6b 2c |HNoPurge|, HLock,|
|00003b40| 20 48 55 6e 6c 6f 63 6b | 2c 20 48 53 65 74 52 42 | HUnlock|, HSetRB|
|00003b50| 69 74 2c 20 48 43 6c 72 | 52 42 69 74 2c 20 48 47 |it, HClr|RBit, HG|
|00003b60| 65 74 53 74 61 74 65 2c | 20 61 6e 64 20 48 53 65 |etState,| and HSe|
|00003b70| 74 53 74 61 74 65 20 74 | 6f 20 6d 61 6e 69 70 75 |tState t|o manipu|
|00003b80| 6c 61 74 65 20 74 68 65 | 20 6d 61 73 74 65 72 20 |late the| master |
|00003b90| 70 6f 69 6e 74 65 72 20 | 66 6c 61 67 73 2e 20 28 |pointer |flags. (|
|00003ba0| 53 65 65 20 74 68 65 20 | 4d 65 6d 6f 72 79 20 4d |See the |Memory M|
|00003bb0| 61 6e 61 67 65 72 20 63 | 68 61 70 74 65 72 20 6f |anager c|hapter o|
|00003bc0| 66 20 49 6e 73 69 64 65 | 20 4d 61 63 69 6e 74 6f |f Inside| Macinto|
|00003bd0| 73 68 20 56 6f 6c 75 6d | 65 20 49 56 20 66 6f 72 |sh Volum|e IV for|
|00003be0| 20 69 6e 66 6f 72 6d 61 | 74 69 6f 6e 20 6f 6e 20 | informa|tion on |
|00003bf0| 74 68 65 73 65 20 63 61 | 6c 6c 73 2e 29 0d 44 6f |these ca|lls.).Do|
|00003c00| 20 79 6f 75 20 63 68 65 | 63 6b 20 66 6f 72 20 31 | you che|ck for 1|
|00003c10| 32 38 4b 2c 20 35 31 32 | 4b 2c 20 61 6e 64 20 31 |28K, 512|K, and 1|
|00003c20| 4d 20 52 41 4d 20 73 69 | 7a 65 73 3f 0d 59 6f 75 |M RAM si|zes?.You|
|00003c30| 20 73 68 6f 75 6c 64 20 | 62 65 20 66 6c 65 78 69 | should |be flexi|
|00003c40| 62 6c 65 20 65 6e 6f 75 | 67 68 20 74 6f 20 61 6c |ble enou|gh to al|
|00003c50| 6c 6f 77 20 66 6f 72 20 | 6e 6f 6e 2d 73 74 61 6e |low for |non-stan|
|00003c60| 64 61 72 64 20 6d 65 6d | 6f 72 79 20 73 69 7a 65 |dard mem|ory size|
|00003c70| 73 2e 20 54 68 69 73 20 | 77 69 6c 6c 20 61 6c 6c |s. This |will all|
|00003c80| 6f 77 20 79 6f 75 72 20 | 73 6f 66 74 77 61 72 65 |ow your |software|
|00003c90| 20 74 6f 20 77 6f 72 6b | 20 69 6e 20 65 6e 76 69 | to work| in envi|
|00003ca0| 72 6f 6e 6d 65 6e 74 73 | 20 6c 69 6b 65 20 4d 75 |ronments| like Mu|
|00003cb0| 6c 74 69 46 69 6e 64 65 | 72 2e 0d 49 73 20 79 6f |ltiFinde|r..Is yo|
|00003cc0| 75 72 20 73 6f 66 74 77 | 61 72 65 20 69 6e 63 6f |ur softw|are inco|
|00003cd0| 6d 70 61 74 69 62 6c 65 | 20 77 69 74 68 20 61 20 |mpatible| with a |
|00003ce0| 74 68 69 72 64 2d 70 61 | 72 74 79 20 76 65 6e 64 |third-pa|rty vend|
|00003cf0| 6f 72 d5 73 20 68 61 72 | 64 77 61 72 65 3f 0d 49 |or.s har|dware?.I|
|00003d00| 66 20 73 6f 2c 20 74 68 | 65 20 69 6e 63 6f 6d 70 |f so, th|e incomp|
|00003d10| 61 74 69 62 69 6c 69 74 | 79 20 6d 61 79 20 70 72 |atibilit|y may pr|
|00003d20| 65 76 65 6e 74 20 79 6f | 75 72 20 73 6f 66 74 77 |event yo|ur softw|
|00003d30| 61 72 65 20 66 72 6f 6d | 20 77 6f 72 6b 69 6e 67 |are from| working|
|00003d40| 20 6f 6e 20 66 75 74 75 | 72 65 20 6d 61 63 68 69 | on futu|re machi|
|00003d50| 6e 65 73 2e 20 59 6f 75 | 20 73 68 6f 75 6c 64 20 |nes. You| should |
|00003d60| 72 65 73 65 61 72 63 68 | 20 74 68 65 20 69 6e 63 |research| the inc|
|00003d70| 6f 6d 70 61 74 69 62 69 | 6c 69 74 79 20 61 6e 64 |ompatibi|lity and|
|00003d80| 20 74 72 79 20 74 6f 20 | 64 65 74 65 72 6d 69 6e | try to |determin|
|00003d90| 65 20 61 20 73 6f 6c 75 | 74 69 6f 6e 2e 0d 44 6f |e a solu|tion..Do|
|00003da0| 20 79 6f 75 20 72 65 6c | 79 20 6f 6e 20 73 79 73 | you rel|y on sys|
|00003db0| 74 65 6d 20 72 65 73 6f | 75 72 63 65 73 20 62 65 |tem reso|urces be|
|00003dc0| 69 6e 67 20 69 6e 20 52 | 41 4d 3f 0d 4f 6e 20 6d |ing in R|AM?.On m|
|00003dd0| 6f 73 74 20 6f 66 20 6f | 75 72 20 73 79 73 74 65 |ost of o|ur syste|
|00003de0| 6d 73 2c 20 73 6f 6d 65 | 20 73 79 73 74 65 6d 20 |ms, some| system |
|00003df0| 72 65 73 6f 75 72 63 65 | 73 20 61 72 65 20 69 6e |resource|s are in|
|00003e00| 20 52 4f 4d 2e 20 59 6f | 75 20 73 68 6f 75 6c 64 | ROM. Yo|u should|
|00003e10| 20 6e 6f 74 20 61 73 73 | 75 6d 65 2c 20 66 6f 72 | not ass|ume, for|
|00003e20| 20 65 78 61 6d 70 6c 65 | 2c 20 74 68 61 74 20 79 | example|, that y|
|00003e30| 6f 75 20 63 61 6e 20 72 | 65 67 61 69 6e 20 52 41 |ou can r|egain RA|
|00003e40| 4d 20 73 70 61 63 65 20 | 62 79 20 72 65 6c 65 61 |M space |by relea|
|00003e50| 73 69 6e 67 20 73 79 73 | 74 65 6d 20 72 65 73 6f |sing sys|tem reso|
|00003e60| 75 72 63 65 73 2e 0d 44 | 6f 65 73 20 79 6f 75 72 |urces..D|oes your|
|00003e70| 20 73 6f 66 74 77 61 72 | 65 20 68 61 76 65 20 74 | softwar|e have t|
|00003e80| 69 6d 69 6e 67 2d 73 65 | 6e 73 69 74 69 76 65 20 |iming-se|nsitive |
|00003e90| 63 6f 64 65 3f 0d 56 61 | 72 69 6f 75 73 20 4d 61 |code?.Va|rious Ma|
|00003ea0| 63 69 6e 74 6f 73 68 65 | 73 20 72 75 6e 20 61 74 |cintoshe|s run at|
|00003eb0| 20 64 69 66 66 65 72 65 | 6e 74 20 63 6c 6f 63 6b | differe|nt clock|
|00003ec0| 20 73 70 65 65 64 73 2c | 20 73 6f 20 74 69 6d 69 | speeds,| so timi|
|00003ed0| 6e 67 20 6c 6f 6f 70 73 | 20 77 69 6c 6c 20 62 65 |ng loops| will be|
|00003ee0| 20 69 6e 76 61 6c 69 64 | 2e 20 59 6f 75 20 63 61 | invalid|. You ca|
|00003ef0| 6e 20 75 73 65 20 74 68 | 65 20 74 72 61 70 20 63 |n use th|e trap c|
|00003f00| 61 6c 6c 20 44 65 6c 61 | 79 20 66 6f 72 20 74 69 |all Dela|y for ti|
|00003f10| 6d 69 6e 67 2c 20 6f 72 | 20 79 6f 75 20 63 61 6e |ming, or| you can|
|00003f20| 20 65 78 61 6d 69 6e 65 | 20 74 68 65 20 67 6c 6f | examine| the glo|
|00003f30| 62 61 6c 20 76 61 72 69 | 61 62 6c 65 20 54 69 63 |bal vari|able Tic|
|00003f40| 6b 73 2e 0d 44 6f 20 79 | 6f 75 20 68 61 76 65 20 |ks..Do y|ou have |
|00003f50| 63 6f 64 65 20 77 68 69 | 63 68 20 77 72 69 74 65 |code whi|ch write|
|00003f60| 73 20 74 6f 20 61 64 64 | 72 65 73 73 65 73 20 77 |s to add|resses w|
|00003f70| 69 74 68 69 6e 20 74 68 | 65 20 63 6f 64 65 20 69 |ithin th|e code i|
|00003f80| 74 73 65 6c 66 3f 0d 41 | 20 6d 65 6d 6f 72 79 20 |tself?.A| memory |
|00003f90| 6d 61 6e 61 67 65 6d 65 | 6e 74 20 75 6e 69 74 20 |manageme|nt unit |
|00003fa0| 28 4d 4d 55 29 20 6d 61 | 79 20 6f 6e 65 20 64 61 |(MMU) ma|y one da|
|00003fb0| 79 20 70 72 65 76 65 6e | 74 20 63 6f 64 65 20 66 |y preven|t code f|
|00003fc0| 72 6f 6d 20 77 72 69 74 | 69 6e 67 20 74 6f 20 61 |rom writ|ing to a|
|00003fd0| 64 64 72 65 73 73 65 73 | 20 77 69 74 68 69 6e 20 |ddresses| within |
|00003fe0| 63 6f 64 65 20 6d 65 6d | 6f 72 79 2e 20 41 6c 73 |code mem|ory. Als|
|00003ff0| 6f 2c 20 73 6f 6d 65 20 | 6d 69 63 72 6f 70 72 6f |o, some |micropro|
|00004000| 63 65 73 73 6f 72 73 20 | 69 6e 20 74 68 65 20 36 |cessors |in the 6|
|00004010| 38 30 30 30 20 66 61 6d | 69 6c 79 20 63 61 63 68 |8000 fam|ily cach|
|00004020| 65 20 63 6f 64 65 20 61 | 73 20 69 74 d5 73 20 65 |e code a|s it.s e|
|00004030| 6e 63 6f 75 6e 74 65 72 | 65 64 2e 20 59 6f 75 72 |ncounter|ed. Your|
|00004040| 20 64 61 74 61 20 62 6c | 6f 63 6b 73 20 73 68 6f | data bl|ocks sho|
|00004050| 75 6c 64 20 62 65 20 61 | 6c 6c 6f 63 61 74 65 64 |uld be a|llocated|
|00004060| 20 6f 6e 20 74 68 65 20 | 73 74 61 63 6b 20 6f 72 | on the |stack or|
|00004070| 20 69 6e 20 68 65 61 70 | 20 62 6c 6f 63 6b 73 20 | in heap| blocks |
|00004080| 73 65 70 61 72 61 74 65 | 20 66 72 6f 6d 20 74 68 |separate| from th|
|00004090| 65 20 63 6f 64 65 2c 20 | 61 6e 64 20 79 6f 75 72 |e code, |and your|
|000040a0| 20 63 6f 64 65 20 73 68 | 6f 75 6c 64 20 6e 6f 74 | code sh|ould not|
|000040b0| 20 6d 6f 64 69 66 79 20 | 69 74 73 65 6c 66 2e 0d | modify |itself..|
|000040c0| 44 6f 20 79 6f 75 20 72 | 65 6c 79 20 6f 6e 20 6b |Do you r|ely on k|
|000040d0| 65 79 62 6f 61 72 64 20 | 6b 65 79 20 63 6f 64 65 |eyboard |key code|
|000040e0| 73 20 72 61 74 68 65 72 | 20 74 68 61 6e 20 41 53 |s rather| than AS|
|000040f0| 43 49 49 20 63 6f 64 65 | 73 3f 0d 54 68 65 20 76 |CII code|s?.The v|
|00004100| 61 72 69 6f 75 73 20 6b | 65 79 62 6f 61 72 64 73 |arious k|eyboards|
|00004110| 20 61 72 65 20 73 6c 69 | 67 68 74 6c 79 20 64 69 | are sli|ghtly di|
|00004120| 66 66 65 72 65 6e 74 3b | 20 66 75 74 75 72 65 20 |fferent;| future |
|00004130| 6b 65 79 62 6f 61 72 64 | 73 20 6d 61 79 20 62 65 |keyboard|s may be|
|00004140| 20 64 69 66 66 65 72 65 | 6e 74 20 66 72 6f 6d 20 | differe|nt from |
|00004150| 74 68 65 6d 2e 20 46 6f | 72 20 74 65 78 74 75 61 |them. Fo|r textua|
|00004160| 6c 20 69 6e 70 75 74 2c | 20 79 6f 75 20 73 68 6f |l input,| you sho|
|00004170| 75 6c 64 20 72 65 61 64 | 20 41 53 43 49 49 20 63 |uld read| ASCII c|
|00004180| 6f 64 65 73 20 72 61 74 | 68 65 72 20 74 68 61 6e |odes rat|her than|
|00004190| 20 6b 65 79 20 63 6f 64 | 65 73 2e 0d 44 6f 20 79 | key cod|es..Do y|
|000041a0| 6f 75 20 72 65 6c 79 20 | 6f 6e 20 74 68 65 20 66 |ou rely |on the f|
|000041b0| 6f 72 6d 61 74 20 6f 66 | 20 70 61 63 6b 65 64 20 |ormat of| packed |
|000041c0| 61 64 64 72 65 73 73 65 | 73 20 69 6e 20 74 68 65 |addresse|s in the|
|000041d0| 20 74 72 61 70 20 64 69 | 73 70 61 74 63 68 20 74 | trap di|spatch t|
|000041e0| 61 62 6c 65 3f 0d 54 68 | 65 20 74 72 61 70 20 64 |able?.Th|e trap d|
|000041f0| 69 73 70 61 74 63 68 20 | 74 61 62 6c 65 20 69 73 |ispatch |table is|
|00004200| 20 64 69 66 66 65 72 65 | 6e 74 20 6f 6e 20 76 61 | differe|nt on va|
|00004210| 72 69 6f 75 73 20 4d 61 | 63 69 6e 74 6f 73 68 65 |rious Ma|cintoshe|
|00004220| 73 2e 20 54 68 65 72 65 | d5 73 20 6e 6f 20 67 75 |s. There|.s no gu|
|00004230| 61 72 61 6e 74 65 65 20 | 6f 66 20 74 68 65 20 74 |arantee |of the t|
|00004240| 72 61 70 20 74 61 62 6c | 65 d5 73 20 66 6f 72 6d |rap tabl|e.s form|
|00004250| 61 74 20 69 6e 20 74 68 | 65 20 66 75 74 75 72 65 |at in th|e future|
|00004260| 2e 20 59 6f 75 20 73 68 | 6f 75 6c 64 20 75 73 65 |. You sh|ould use|
|00004270| 20 74 68 65 20 73 79 73 | 74 65 6d 20 63 61 6c 6c | the sys|tem call|
|00004280| 73 20 47 65 74 54 72 61 | 70 41 64 64 72 65 73 73 |s GetTra|pAddress|
|00004290| 20 61 6e 64 20 53 65 74 | 54 72 61 70 41 64 64 72 | and Set|TrapAddr|
|000042a0| 65 73 73 20 74 6f 20 6d | 61 6e 69 70 75 6c 61 74 |ess to m|anipulat|
|000042b0| 65 20 74 68 65 20 74 72 | 61 70 20 64 69 73 70 61 |e the tr|ap dispa|
|000042c0| 74 63 68 20 74 61 62 6c | 65 2e 0d 44 6f 20 79 6f |tch tabl|e..Do yo|
|000042d0| 75 20 75 73 65 20 74 68 | 65 20 52 65 73 6f 75 72 |u use th|e Resour|
|000042e0| 63 65 20 4d 61 6e 61 67 | 65 72 20 63 61 6c 6c 73 |ce Manag|er calls|
|000042f0| 20 41 64 64 52 65 66 65 | 72 65 6e 63 65 20 6f 72 | AddRefe|rence or|
|00004300| 20 52 6d 76 65 52 65 66 | 65 72 65 6e 63 65 3f 0d | RmveRef|erence?.|
|00004310| 54 68 65 73 65 20 63 61 | 6c 6c 73 20 68 61 76 65 |These ca|lls have|
|00004320| 20 62 65 65 6e 20 72 65 | 6d 6f 76 65 64 20 66 72 | been re|moved fr|
|00004330| 6f 6d 20 74 68 65 20 31 | 32 38 4b 20 52 4f 4d 2e |om the 1|28K ROM.|
|00004340| 20 54 68 65 79 20 61 72 | 65 20 6e 6f 20 6c 6f 6e | They ar|e no lon|
|00004350| 67 65 72 20 73 75 70 70 | 6f 72 74 65 64 2e 0d 44 |ger supp|orted..D|
|00004360| 6f 20 79 6f 75 20 73 74 | 6f 72 65 20 69 6e 66 6f |o you st|ore info|
|00004370| 72 6d 61 74 69 6f 6e 20 | 69 6e 20 74 68 65 20 61 |rmation |in the a|
|00004380| 70 70 6c 69 63 61 74 69 | 6f 6e 20 70 61 72 61 6d |pplicati|on param|
|00004390| 65 74 65 72 73 20 61 72 | 65 61 20 28 74 68 65 20 |eters ar|ea (the |
|000043a0| 33 32 20 62 79 74 65 73 | 20 62 65 74 77 65 65 6e |32 bytes| between|
|000043b0| 20 74 68 65 20 61 70 70 | 6c 69 63 61 74 69 6f 6e | the app|lication|
|000043c0| 20 61 6e 64 20 75 6e 69 | 74 20 67 6c 6f 62 61 6c | and uni|t global|
|000043d0| 73 20 61 6e 64 20 74 68 | 65 20 6a 75 6d 70 20 74 |s and th|e jump t|
|000043e0| 61 62 6c 65 29 3f 0d 54 | 68 69 73 20 73 70 61 63 |able)?.T|his spac|
|000043f0| 65 20 69 73 20 72 65 73 | 65 72 76 65 64 20 66 6f |e is res|erved fo|
|00004400| 72 20 75 73 65 20 62 79 | 20 41 70 70 6c 65 2e 0d |r use by| Apple..|
|00004410| 44 6f 20 79 6f 75 20 64 | 65 70 65 6e 64 20 6f 6e |Do you d|epend on|
|00004420| 20 76 61 6c 75 65 73 20 | 69 6e 20 72 65 67 69 73 | values |in regis|
|00004430| 74 65 72 73 20 61 66 74 | 65 72 20 61 20 74 72 61 |ters aft|er a tra|
|00004440| 70 20 63 61 6c 6c 2c 20 | 6f 74 68 65 72 20 74 68 |p call, |other th|
|00004450| 61 6e 20 74 68 6f 73 65 | 20 64 6f 63 75 6d 65 6e |an those| documen|
|00004460| 74 65 64 20 69 6e 20 49 | 6e 73 69 64 65 20 4d 61 |ted in I|nside Ma|
|00004470| 63 69 6e 74 6f 73 68 3f | 0d 54 68 65 73 65 20 76 |cintosh?|.These v|
|00004480| 61 6c 75 65 73 20 61 72 | 65 6e d5 74 20 67 75 61 |alues ar|en.t gua|
|00004490| 72 61 6e 74 65 65 64 2e | 20 54 68 65 20 72 65 67 |ranteed.| The reg|
|000044a0| 69 73 74 65 72 20 63 6f | 6e 76 65 6e 74 69 6f 6e |ister co|nvention|
|000044b0| 73 20 64 6f 63 75 6d 65 | 6e 74 65 64 20 69 6e 20 |s docume|nted in |
|000044c0| 49 6e 73 69 64 65 20 4d | 61 63 69 6e 74 6f 73 68 |Inside M|acintosh|
|000044d0| 20 77 69 6c 6c 2c 20 6f | 66 20 63 6f 75 72 73 65 | will, o|f course|
|000044e0| 2c 20 62 65 20 73 75 70 | 70 6f 72 74 65 64 2e 20 |, be sup|ported. |
|000044f0| 4f 66 74 65 6e 2c 20 79 | 6f 75 20 6d 61 79 20 6e |Often, y|ou may n|
|00004500| 6f 74 20 72 65 61 6c 69 | 7a 65 20 74 68 61 74 20 |ot reali|ze that |
|00004510| 79 6f 75 72 20 63 6f 64 | 65 20 69 73 20 64 65 70 |your cod|e is dep|
|00004520| 65 6e 64 69 6e 67 20 6f | 6e 20 74 68 65 73 65 20 |ending o|n these |
|00004530| 75 6e 64 6f 63 75 6d 65 | 6e 74 65 64 20 76 61 6c |undocume|nted val|
|00004540| 75 65 73 2c 20 73 6f 20 | 63 68 65 63 6b 20 79 6f |ues, so |check yo|
|00004550| 75 72 20 72 65 67 69 73 | 74 65 72 20 75 73 61 67 |ur regis|ter usag|
|00004560| 65 20 63 61 72 65 66 75 | 6c 6c 79 2e 0d 44 6f 20 |e carefu|lly..Do |
|00004570| 79 6f 75 20 75 73 65 20 | 74 68 65 20 49 4d 4d 45 |you use |the IMME|
|00004580| 44 20 62 69 74 20 69 6e | 20 46 69 6c 65 20 4d 61 |D bit in| File Ma|
|00004590| 6e 61 67 65 72 20 63 61 | 6c 6c 73 3f 0d 54 68 69 |nager ca|lls?.Thi|
|000045a0| 73 20 62 69 74 2c 20 77 | 68 69 63 68 20 77 61 73 |s bit, w|hich was|
|000045b0| 20 64 6f 63 75 6d 65 6e | 74 65 64 20 69 6e 20 65 | documen|ted in e|
|000045c0| 61 72 6c 79 20 76 65 72 | 73 69 6f 6e 73 20 6f 66 |arly ver|sions of|
|000045d0| 20 49 6e 73 69 64 65 20 | 4d 61 63 69 6e 74 6f 73 | Inside |Macintos|
|000045e0| 68 20 61 73 20 61 20 73 | 70 65 63 69 61 6c 20 66 |h as a s|pecial f|
|000045f0| 6f 72 6d 20 6f 66 20 46 | 69 6c 65 20 4d 61 6e 61 |orm of F|ile Mana|
|00004600| 67 65 72 20 63 61 6c 6c | 2c 20 61 63 74 75 61 6c |ger call|, actual|
|00004610| 6c 79 20 64 69 64 20 6e | 6f 74 68 69 6e 67 20 66 |ly did n|othing f|
|00004620| 6f 72 20 46 69 6c 65 20 | 4d 61 6e 61 67 65 72 20 |or File |Manager |
|00004630| 63 61 6c 6c 73 2c 20 61 | 6e 64 20 77 61 73 20 75 |calls, a|nd was u|
|00004640| 73 65 64 20 6f 6e 6c 79 | 20 66 6f 72 20 44 65 76 |sed only| for Dev|
|00004650| 69 63 65 20 4d 61 6e 61 | 67 65 72 20 63 61 6c 6c |ice Mana|ger call|
|00004660| 73 2e 20 57 69 74 68 20 | 74 68 65 20 61 64 76 65 |s. With |the adve|
|00004670| 6e 74 20 6f 66 20 74 68 | 65 20 48 69 65 72 61 72 |nt of th|e Hierar|
|00004680| 63 68 69 63 61 6c 20 46 | 69 6c 65 20 53 79 73 74 |chical F|ile Syst|
|00004690| 65 6d 2c 20 74 68 69 73 | 20 62 69 74 20 69 6e 64 |em, this| bit ind|
|000046a0| 69 63 61 74 65 73 20 74 | 68 61 74 20 74 68 65 20 |icates t|hat the |
|000046b0| 63 61 6c 6c 20 68 61 73 | 20 61 20 70 61 72 61 6d |call has| a param|
|000046c0| 65 74 65 72 20 62 6c 6f | 63 6b 20 77 69 74 68 20 |eter blo|ck with |
|000046d0| 68 69 65 72 61 72 63 68 | 69 63 61 6c 20 69 6e 66 |hierarch|ical inf|
|000046e0| 6f 72 6d 61 74 69 6f 6e | 2e 0d 44 6f 20 79 6f 75 |ormation|..Do you|
|000046f0| 20 6d 61 6b 65 20 61 73 | 73 75 6d 70 74 69 6f 6e | make as|sumption|
|00004700| 73 20 61 62 6f 75 74 20 | 74 68 65 20 6e 75 6d 62 |s about |the numb|
|00004710| 65 72 20 61 6e 64 20 73 | 69 7a 65 20 6f 66 20 64 |er and s|ize of d|
|00004720| 69 73 6b 20 64 72 69 76 | 65 73 3f 0d 54 68 65 72 |isk driv|es?.Ther|
|00004730| 65 20 61 72 65 20 6e 6f | 77 20 66 69 76 65 20 73 |e are no|w five s|
|00004740| 69 7a 65 73 20 6f 66 20 | 41 70 70 6c 65 20 64 69 |izes of |Apple di|
|00004750| 73 6b 73 20 66 6f 72 20 | 74 68 65 20 4d 61 63 69 |sks for |the Maci|
|00004760| 6e 74 6f 73 68 20 28 34 | 30 30 4b 2c 20 38 30 30 |ntosh (4|00K, 800|
|00004770| 4b 2c 20 61 6e 64 20 32 | 30 4d 2c 20 34 30 4d 2c |K, and 2|0M, 40M,|
|00004780| 20 38 30 4d 29 2c 20 61 | 73 20 77 65 6c 6c 20 61 | 80M), a|s well a|
|00004790| 73 20 6d 61 6e 79 20 6d | 6f 72 65 20 66 72 6f 6d |s many m|ore from|
|000047a0| 20 74 68 69 72 64 2d 70 | 61 72 74 79 20 76 65 6e | third-p|arty ven|
|000047b0| 64 6f 72 73 2e 20 59 6f | 75 20 73 68 6f 75 6c 64 |dors. Yo|u should|
|000047c0| 20 75 73 65 20 53 74 61 | 6e 64 61 72 64 20 46 69 | use Sta|ndard Fi|
|000047d0| 6c 65 20 61 6e 64 20 46 | 69 6c 65 20 4d 61 6e 61 |le and F|ile Mana|
|000047e0| 67 65 72 20 63 61 6c 6c | 73 20 74 6f 20 64 65 74 |ger call|s to det|
|000047f0| 65 72 6d 69 6e 65 20 74 | 68 65 20 6e 75 6d 62 65 |ermine t|he numbe|
|00004800| 72 20 61 6e 64 20 73 69 | 7a 65 20 6f 66 20 64 69 |r and si|ze of di|
|00004810| 73 6b 20 64 72 69 76 65 | 73 2e 0d 44 6f 20 79 6f |sk drive|s..Do yo|
|00004820| 75 20 64 65 70 65 6e 64 | 20 6f 6e 20 61 6c 74 65 |u depend| on alte|
|00004830| 72 6e 61 74 65 20 28 70 | 61 67 65 20 32 29 20 73 |rnate (p|age 2) s|
|00004840| 6f 75 6e 64 20 6f 72 20 | 76 69 64 65 6f 20 62 75 |ound or |video bu|
|00004850| 66 66 65 72 73 3f 0d 53 | 6f 6d 65 20 4d 61 63 69 |ffers?.S|ome Maci|
|00004860| 6e 74 6f 73 68 65 73 20 | 64 6f 20 6e 6f 74 20 73 |ntoshes |do not s|
|00004870| 75 70 70 6f 72 74 20 61 | 6c 74 65 72 6e 61 74 65 |upport a|lternate|
|00004880| 20 73 6f 75 6e 64 20 61 | 6e 64 20 76 69 64 65 6f | sound a|nd video|
|00004890| 20 62 75 66 66 65 72 73 | 2e 0d 44 6f 20 79 6f 75 | buffers|..Do you|
|000048a0| 20 70 72 69 6e 74 20 62 | 79 20 73 65 6e 64 69 6e | print b|y sendin|
|000048b0| 67 20 41 53 43 49 49 20 | 64 69 72 65 63 74 6c 79 |g ASCII |directly|
|000048c0| 20 74 6f 20 74 68 65 20 | 70 72 69 6e 74 65 72 20 | to the |printer |
|000048d0| 64 72 69 76 65 72 3f 0d | 54 6f 20 72 65 74 61 69 |driver?.|To retai|
|000048e0| 6e 20 63 6f 6d 70 61 74 | 69 62 69 6c 69 74 79 20 |n compat|ibility |
|000048f0| 77 69 74 68 20 62 6f 74 | 68 20 6c 6f 63 61 6c 6c |with bot|h locall|
|00004900| 79 2d 63 6f 6e 6e 65 63 | 74 65 64 20 61 6e 64 20 |y-connec|ted and |
|00004910| 41 70 70 6c 65 54 61 6c | 6b 2d 63 6f 6e 6e 65 63 |AppleTal|k-connec|
|00004920| 74 65 64 20 70 72 69 6e | 74 65 72 73 2c 20 79 6f |ted prin|ters, yo|
|00004930| 75 20 73 68 6f 75 6c 64 | 20 70 72 69 6e 74 20 75 |u should| print u|
|00004940| 73 69 6e 67 20 50 72 69 | 6e 74 69 6e 67 20 4d 61 |sing Pri|nting Ma|
|00004950| 6e 61 67 65 72 72 2c 20 | 61 73 20 64 6f 63 75 6d |nagerr, |as docum|
|00004960| 65 6e 74 65 64 20 69 6e | 20 49 6e 73 69 64 65 20 |ented in| Inside |
|00004970| 4d 61 63 69 6e 74 6f 73 | 68 2e 0d 44 6f 65 73 20 |Macintos|h..Does |
|00004980| 79 6f 75 72 20 61 70 70 | 6c 69 63 61 74 69 6f 6e |your app|lication|
|00004990| 20 66 61 69 6c 20 77 68 | 65 6e 20 69 74 d5 73 20 | fail wh|en it.s |
|000049a0| 74 68 65 20 73 74 61 72 | 74 75 70 20 61 70 70 6c |the star|tup appl|
|000049b0| 69 63 61 74 69 6f 6e 20 | 28 69 2e 65 2e 2c 20 77 |ication |(i.e., w|
|000049c0| 69 74 68 6f 75 74 20 74 | 68 65 20 46 69 6e 64 65 |ithout t|he Finde|
|000049d0| 72 20 62 65 69 6e 67 20 | 72 75 6e 20 66 69 72 73 |r being |run firs|
|000049e0| 74 29 3f 0d 49 66 20 73 | 6f 2c 20 79 6f 75 d5 72 |t)?.If s|o, you.r|
|000049f0| 65 20 70 72 6f 62 61 62 | 6c 79 20 6e 6f 74 20 69 |e probab|ly not i|
|00004a00| 6e 69 74 69 61 6c 69 7a | 69 6e 67 20 61 20 76 61 |nitializ|ing a va|
|00004a10| 72 69 61 62 6c 65 2e 20 | 49 66 20 79 6f 75 72 20 |riable. |If your |
|00004a20| 61 70 70 6c 69 63 61 74 | 69 6f 6e 20 64 6f 65 73 |applicat|ion does|
|00004a30| 20 6e 6f 74 20 77 6f 72 | 6b 20 61 73 20 74 68 65 | not wor|k as the|
|00004a40| 20 73 74 61 72 74 75 70 | 20 61 70 70 6c 69 63 61 | startup| applica|
|00004a50| 74 69 6f 6e 2c 20 79 6f | 75 20 73 68 6f 75 6c 64 |tion, yo|u should|
|00004a60| 20 64 65 74 65 72 6d 69 | 6e 65 20 77 68 79 20 61 | determi|ne why a|
|00004a70| 6e 64 20 66 69 78 20 74 | 68 65 20 70 72 6f 62 6c |nd fix t|he probl|
|00004a80| 65 6d 2c 20 73 69 6e 63 | 65 20 69 74 20 6d 61 79 |em, sinc|e it may|
|00004a90| 20 63 61 75 73 65 20 79 | 6f 75 72 20 61 70 70 6c | cause y|our appl|
|00004aa0| 69 63 61 74 69 6f 6e 20 | 74 6f 20 66 61 69 6c 20 |ication |to fail |
|00004ab0| 69 6e 20 74 68 65 20 66 | 75 74 75 72 65 2e 0d 4f |in the f|uture..O|
|00004ac0| 56 20 34 20 2d 20 43 6f | 6d 70 61 74 69 62 69 6c |V 4 - Co|mpatibil|
|00004ad0| 69 74 79 3a 20 57 68 79 | 20 26 20 48 6f 77 0d 4f |ity: Why| & How.O|
|00004ae0| 76 65 72 76 69 65 77 09 | 0d 52 65 76 69 73 65 64 |verview.|.Revised|
|00004af0| 20 62 79 3a 09 09 4d 61 | 72 63 68 20 31 39 38 38 | by:..Ma|rch 1988|
|00004b00| 0d 57 72 69 74 74 65 6e | 20 62 79 3a 09 42 6f 62 |.Written| by:.Bob|
|00004b10| 20 4a 6f 68 6e 73 6f 6e | 09 46 65 62 72 75 61 72 | Johnson|.Februar|
|00004b20| 79 20 31 39 38 37 0d 57 | 68 69 6c 65 20 63 72 65 |y 1987.W|hile cre|
|00004b30| 61 74 69 6e 67 20 6f 72 | 20 72 65 76 69 73 69 6e |ating or| revisin|
|00004b40| 67 20 61 6e 79 20 70 72 | 6f 67 72 61 6d 20 66 6f |g any pr|ogram fo|
|00004b50| 72 20 74 68 65 20 4d 61 | 63 69 6e 74 6f 73 68 2c |r the Ma|cintosh,|
|00004b60| 20 79 6f 75 20 73 68 6f | 75 6c 64 20 62 65 20 61 | you sho|uld be a|
|00004b70| 77 61 72 65 20 6f 66 20 | 74 68 65 20 6d 6f 73 74 |ware of |the most|
|00004b80| 20 63 6f 6d 6d 6f 6e 20 | 72 65 61 73 6f 6e 73 20 | common |reasons |
|00004b90| 77 68 79 20 70 72 6f 67 | 72 61 6d 73 20 66 61 69 |why prog|rams fai|
|00004ba0| 6c 20 6f 6e 20 76 61 72 | 69 6f 75 73 20 76 65 72 |l on var|ious ver|
|00004bb0| 73 69 6f 6e 73 20 6f 66 | 20 74 68 65 20 4d 61 63 |sions of| the Mac|
|00004bc0| 69 6e 74 6f 73 68 2e 20 | 54 68 69 73 20 6e 6f 74 |intosh. |This not|
|00004bd0| 65 20 77 69 6c 6c 20 64 | 65 74 61 69 6c 20 73 6f |e will d|etail so|
|00004be0| 6d 65 20 63 6f 6d 6d 6f | 6e 20 66 61 69 6c 75 72 |me commo|n failur|
|00004bf0| 65 20 6d 6f 64 65 73 2c | 20 77 68 79 20 74 68 65 |e modes,| why the|
|00004c00| 79 20 6f 63 63 75 72 2c | 20 61 6e 64 20 68 6f 77 |y occur,| and how|
|00004c10| 20 74 6f 20 61 76 6f 69 | 64 20 74 68 65 6d 2e 0d | to avoi|d them..|
|00004c20| 57 65 d5 76 65 20 74 72 | 69 65 64 20 74 6f 20 65 |We.ve tr|ied to e|
|00004c30| 78 70 6c 61 69 6e 20 74 | 68 65 20 69 73 73 75 65 |xplain t|he issue|
|00004c40| 73 20 69 6e 20 64 65 70 | 74 68 2c 20 62 75 74 20 |s in dep|th, but |
|00004c50| 72 65 63 6f 67 6e 69 7a | 65 20 74 68 61 74 20 6e |recogniz|e that n|
|00004c60| 6f 74 20 65 76 65 72 79 | 6f 6e 65 20 69 73 20 69 |ot every|one is i|
|00004c70| 6e 74 65 72 65 73 74 65 | 64 20 69 6e 20 65 76 65 |ntereste|d in eve|
|00004c80| 72 79 20 69 73 73 75 65 | 2e 20 46 6f 72 20 65 78 |ry issue|. For ex|
|00004c90| 61 6d 70 6c 65 2c 20 69 | 66 20 79 6f 75 72 20 61 |ample, i|f your a|
|00004ca0| 70 70 6c 69 63 61 74 69 | 6f 6e 20 69 73 20 6e 6f |pplicati|on is no|
|00004cb0| 74 20 63 6f 70 79 20 70 | 72 6f 74 65 63 74 65 64 |t copy p|rotected|
|00004cc0| 2c 20 79 6f 75 d5 72 65 | 20 70 72 6f 62 61 62 6c |, you.re| probabl|
|00004cd0| 79 20 6e 6f 74 20 76 65 | 72 79 20 69 6e 74 65 72 |y not ve|ry inter|
|00004ce0| 65 73 74 65 64 20 69 6e | 20 74 68 65 20 73 65 63 |ested in| the sec|
|00004cf0| 74 69 6f 6e 20 6f 6e 20 | 63 6f 70 79 20 70 72 6f |tion on |copy pro|
|00004d00| 74 65 63 74 69 6f 6e 2e | 20 54 68 61 74 d5 73 20 |tection.| That.s |
|00004d10| 77 68 79 20 77 65 d5 76 | 65 20 69 6e 63 6c 75 64 |why we.v|e includ|
|00004d20| 65 64 20 74 68 65 20 6f | 75 74 6c 69 6e 65 20 66 |ed the o|utline f|
|00004d30| 6f 72 6d 20 6f 66 20 74 | 68 65 20 74 65 63 68 6e |orm of t|he techn|
|00004d40| 69 63 61 6c 20 6e 6f 74 | 65 2e 20 54 68 65 20 66 |ical not|e. The f|
|00004d50| 69 72 73 74 20 74 77 6f | 20 70 61 67 65 73 20 6f |irst two| pages o|
|00004d60| 75 74 6c 69 6e 65 20 74 | 68 65 20 70 72 6f 62 6c |utline t|he probl|
|00004d70| 65 6d 73 20 61 6e 64 20 | 74 68 65 20 73 6f 6c 75 |ems and |the solu|
|00004d80| 74 69 6f 6e 73 20 74 68 | 61 74 20 61 72 65 20 64 |tions th|at are d|
|00004d90| 65 74 61 69 6c 65 64 20 | 6c 61 74 65 72 2e 20 46 |etailed |later. F|
|00004da0| 65 65 6c 20 66 72 65 65 | 20 74 6f 20 73 6b 69 70 |eel free| to skip|
|00004db0| 20 61 72 6f 75 6e 64 20 | 61 74 20 77 69 6c 6c 2c | around |at will,|
|00004dc0| 20 62 75 74 20 72 65 6d | 65 6d 62 65 72 20 74 68 | but rem|ember th|
|00004dd0| 61 74 20 77 65 d5 72 65 | 20 73 65 6e 64 69 6e 67 |at we.re| sending|
|00004de0| 20 74 68 69 73 20 65 6e | 6f 72 6d 6f 75 73 20 74 | this en|ormous t|
|00004df0| 65 63 68 6e 69 63 61 6c | 20 6e 6f 74 65 20 62 65 |echnical| note be|
|00004e00| 63 61 75 73 65 20 74 68 | 65 20 73 75 67 67 65 73 |cause th|e sugges|
|00004e10| 74 69 6f 6e 73 20 69 74 | 20 70 72 6f 76 69 64 65 |tions it| provide|
|00004e20| 73 20 6d 61 79 20 73 61 | 76 65 20 79 6f 75 20 68 |s may sa|ve you h|
|00004e30| 61 73 74 79 20 63 6f 6d | 70 61 74 69 62 69 6c 69 |asty com|patibili|
|00004e40| 74 79 20 72 65 76 69 73 | 69 6f 6e 73 20 77 68 65 |ty revis|ions whe|
|00004e50| 6e 20 77 65 20 61 6e 6e | 6f 75 6e 63 65 20 61 20 |n we ann|ounce a |
|00004e60| 6e 65 77 20 6d 61 63 68 | 69 6e 65 2e 0d 57 65 20 |new mach|ine..We |
|00004e70| 6b 6e 6f 77 20 69 74 d5 | 73 20 61 20 6c 6f 74 2c |know it.|s a lot,|
|00004e80| 20 61 6e 64 20 77 65 d5 | 72 65 20 68 65 72 65 20 | and we.|re here |
|00004e90| 74 6f 20 68 65 6c 70 20 | 79 6f 75 20 69 66 20 79 |to help |you if y|
|00004ea0| 6f 75 20 6e 65 65 64 20 | 69 74 2e 20 4f 75 72 20 |ou need |it. Our |
|00004eb0| 61 64 64 72 65 73 73 20 | 28 65 6c 65 63 74 72 6f |address |(electro|
|00004ec0| 6e 69 63 20 61 6e 64 20 | 70 68 79 73 69 63 61 6c |nic and |physical|
|00004ed0| 29 20 69 73 20 6f 6e 20 | 70 61 67 65 20 74 77 6f |) is on |page two|
|00004ee0| d1 63 6f 6e 74 61 63 74 | 20 75 73 20 77 69 74 68 |.contact| us with|
|00004ef0| 20 61 6e 79 20 71 75 65 | 73 74 69 6f 6e 73 d1 74 | any que|stions.t|
|00004f00| 68 61 74 d5 73 20 77 68 | 61 74 20 77 65 d5 72 65 |hat.s wh|at we.re|
|00004f10| 20 68 65 72 65 20 66 6f | 72 21 0d 43 6f 6d 70 61 | here fo|r!.Compa|
|00004f20| 74 69 62 69 6c 69 74 79 | 3a 20 74 68 65 20 6f 75 |tibility|: the ou|
|00004f30| 74 6c 69 6e 65 0d 44 6f | 6e d5 74 20 61 73 73 75 |tline.Do|n.t assu|
|00004f40| 6d 65 20 74 68 65 20 73 | 63 72 65 65 6e 20 69 73 |me the s|creen is|
|00004f50| 20 61 20 66 69 78 65 64 | 20 73 69 7a 65 0d 54 6f | a fixed| size.To|
|00004f60| 20 67 65 74 20 74 68 65 | 20 73 63 72 65 65 6e 20 | get the| screen |
|00004f70| 73 69 7a 65 3a 0d 09 a5 | 20 63 68 65 63 6b 20 74 |size:...| check t|
|00004f80| 68 65 20 51 75 69 63 6b | 44 72 61 77 20 67 6c 6f |he Quick|Draw glo|
|00004f90| 62 61 6c 20 73 63 72 65 | 65 6e 42 69 74 73 2e 62 |bal scre|enBits.b|
|00004fa0| 6f 75 6e 64 73 0d 44 6f | 6e d5 74 20 61 73 73 75 |ounds.Do|n.t assu|
|00004fb0| 6d 65 20 74 68 65 20 73 | 63 72 65 65 6e 20 69 73 |me the s|creen is|
|00004fc0| 20 69 6e 20 61 20 66 69 | 78 65 64 20 6c 6f 63 61 | in a fi|xed loca|
|00004fd0| 74 69 6f 6e 0d 54 6f 20 | 67 65 74 20 74 68 65 20 |tion.To |get the |
|00004fe0| 73 63 72 65 65 6e 20 6c | 6f 63 61 74 69 6f 6e 3a |screen l|ocation:|
|00004ff0| 0d 09 a5 20 63 68 65 63 | 6b 20 74 68 65 20 51 75 |... chec|k the Qu|
|00005000| 69 63 6b 44 72 61 77 20 | 67 6c 6f 62 61 6c 20 73 |ickDraw |global s|
|00005010| 63 72 65 65 6e 42 69 74 | 73 2e 62 61 73 65 41 64 |creenBit|s.baseAd|
|00005020| 64 72 0d 44 6f 6e d5 74 | 20 61 73 73 75 6d 65 20 |dr.Don.t| assume |
|00005030| 74 68 61 74 20 72 6f 77 | 42 79 74 65 73 20 69 73 |that row|Bytes is|
|00005040| 20 65 71 75 61 6c 20 74 | 6f 20 74 68 65 20 77 69 | equal t|o the wi|
|00005050| 64 74 68 20 6f 66 20 74 | 68 65 20 73 63 72 65 65 |dth of t|he scree|
|00005060| 6e 0d 54 6f 20 67 65 74 | 20 74 68 65 20 6e 75 6d |n.To get| the num|
|00005070| 62 65 72 20 6f 66 20 62 | 79 74 65 73 20 6f 6e 20 |ber of b|ytes on |
|00005080| 61 20 6c 69 6e 65 3a 0d | 09 a5 20 63 68 65 63 6b |a line:.|.. check|
|00005090| 20 74 68 65 20 51 75 69 | 63 6b 44 72 61 77 20 67 | the Qui|ckDraw g|
|000050a0| 6c 6f 62 61 6c 20 73 63 | 72 65 65 6e 42 69 74 73 |lobal sc|reenBits|
|000050b0| 2e 72 6f 77 42 79 74 65 | 73 0d 54 6f 20 67 65 74 |.rowByte|s.To get|
|000050c0| 20 74 68 65 20 73 63 72 | 65 65 6e 20 77 69 64 74 | the scr|een widt|
|000050d0| 68 3a 0d 09 a5 20 63 68 | 65 63 6b 20 74 68 65 20 |h:... ch|eck the |
|000050e0| 51 75 69 63 6b 44 72 61 | 77 20 67 6c 6f 62 61 6c |QuickDra|w global|
|000050f0| 20 73 63 72 65 65 6e 42 | 69 74 73 2e 62 6f 75 6e | screenB|its.boun|
|00005100| 64 73 2e 72 69 67 68 74 | 0d 54 6f 20 64 6f 20 73 |ds.right|.To do s|
|00005110| 63 72 65 65 6e 2d 73 69 | 7a 65 20 63 61 6c 63 75 |creen-si|ze calcu|
|00005120| 6c 61 74 69 6f 6e 73 3a | 0d 09 a5 20 55 73 65 20 |lations:|... Use |
|00005130| 4c 6f 6e 67 49 6e 74 73 | 0d 44 6f 6e d5 74 20 77 |LongInts|.Don.t w|
|00005140| 72 69 74 65 20 74 6f 20 | 6f 72 20 72 65 61 64 20 |rite to |or read |
|00005150| 66 72 6f 6d 20 6e 69 6c | 20 48 61 6e 64 6c 65 73 |from nil| Handles|
|00005160| 20 6f 72 20 6e 69 6c 20 | 50 6f 69 6e 74 65 72 73 | or nil |Pointers|
|00005170| 0d 44 6f 6e d5 74 20 63 | 72 65 61 74 65 20 6f 72 |.Don.t c|reate or|
|00005180| 20 55 73 65 20 46 61 6b | 65 20 48 61 6e 64 6c 65 | Use Fak|e Handle|
|00005190| 73 0d 54 6f 20 61 76 6f | 69 64 20 63 72 65 61 74 |s.To avo|id creat|
|000051a0| 69 6e 67 20 6f 72 20 75 | 73 69 6e 67 20 66 61 6b |ing or u|sing fak|
|000051b0| 65 20 68 61 6e 64 6c 65 | 73 3a 0d 09 a5 20 41 6c |e handle|s:... Al|
|000051c0| 77 61 79 73 20 6c 65 74 | 20 74 68 65 20 4d 65 6d |ways let| the Mem|
|000051d0| 6f 72 79 20 4d 61 6e 61 | 67 65 72 20 70 65 72 66 |ory Mana|ger perf|
|000051e0| 6f 72 6d 20 6f 70 65 72 | 61 74 69 6f 6e 73 20 77 |orm oper|ations w|
|000051f0| 69 74 68 20 68 61 6e 64 | 6c 65 73 0d 09 a5 20 4e |ith hand|les... N|
|00005200| 65 76 65 72 20 77 72 69 | 74 65 20 63 6f 64 65 20 |ever wri|te code |
|00005210| 74 68 61 74 20 61 73 73 | 69 67 6e 73 20 73 6f 6d |that ass|igns som|
|00005220| 65 74 68 69 6e 67 20 74 | 6f 20 61 20 6d 61 73 74 |ething t|o a mast|
|00005230| 65 72 20 70 6f 69 6e 74 | 65 72 0d 44 6f 6e d5 74 |er point|er.Don.t|
|00005240| 20 77 72 69 74 65 20 63 | 6f 64 65 20 74 68 61 74 | write c|ode that|
|00005250| 20 6d 6f 64 69 66 69 65 | 73 20 69 74 73 65 6c 66 | modifie|s itself|
|00005260| 0d 53 65 6c 66 20 6d 6f | 64 69 66 79 69 6e 67 20 |.Self mo|difying |
|00005270| 63 6f 64 65 20 77 69 6c | 6c 20 6e 6f 74 20 6c 69 |code wil|l not li|
|00005280| 76 65 20 61 63 72 6f 73 | 73 20 69 6e 63 61 72 6e |ve acros|s incarn|
|00005290| 61 74 69 6f 6e 73 20 6f | 66 20 74 68 65 20 36 38 |ations o|f the 68|
|000052a0| 30 30 30 0d 54 68 69 6e | 6b 20 63 61 72 65 66 75 |000.Thin|k carefu|
|000052b0| 6c 6c 79 20 61 62 6f 75 | 74 20 63 6f 64 65 20 64 |lly abou|t code d|
|000052c0| 65 73 69 67 6e 65 64 20 | 73 74 72 69 63 74 6c 79 |esigned |strictly|
|000052d0| 20 61 73 20 63 6f 70 79 | 20 70 72 6f 74 65 63 74 | as copy| protect|
|000052e0| 69 6f 6e 0d 54 6f 20 61 | 76 6f 69 64 20 63 6f 70 |ion.To a|void cop|
|000052f0| 79 20 70 72 6f 74 65 63 | 74 69 6f 6e 2d 72 65 6c |y protec|tion-rel|
|00005300| 61 74 65 64 20 69 6e 63 | 6f 6d 70 61 74 69 62 69 |ated inc|ompatibi|
|00005310| 6c 69 74 69 65 73 3a 0d | 09 a5 20 41 76 6f 69 64 |lities:.|.. Avoid|
|00005320| 20 63 6f 70 79 20 70 72 | 6f 74 65 63 74 69 6f 6e | copy pr|otection|
|00005330| 20 61 6c 74 6f 67 65 74 | 68 65 72 0d 09 a5 20 52 | altoget|her... R|
|00005340| 65 6c 79 20 6f 6e 20 73 | 63 68 65 6d 65 73 20 74 |ely on s|chemes t|
|00005350| 68 61 74 20 64 6f 6e d5 | 74 20 72 65 71 75 69 72 |hat don.|t requir|
|00005360| 65 20 73 70 65 63 69 66 | 69 63 20 68 61 72 64 77 |e specif|ic hardw|
|00005370| 61 72 65 0d 09 a5 20 4d | 61 6b 65 20 73 75 72 65 |are... M|ake sure|
|00005380| 20 79 6f 75 72 20 73 63 | 68 65 6d 65 20 64 6f 65 | your sc|heme doe|
|00005390| 73 6e d5 74 20 70 65 72 | 66 6f 72 6d 20 69 6c 6c |sn.t per|form ill|
|000053a0| 65 67 61 6c 20 6f 70 65 | 72 61 74 69 6f 6e 73 20 |egal ope|rations |
|000053b0| 0d 44 6f 6e d5 74 20 69 | 67 6e 6f 72 65 20 65 72 |.Don.t i|gnore er|
|000053c0| 72 6f 72 73 0d 54 6f 20 | 67 65 74 20 76 61 6c 75 |rors.To |get valu|
|000053d0| 61 62 6c 65 20 69 6e 66 | 6f 72 6d 61 74 69 6f 6e |able inf|ormation|
|000053e0| 3a 0d 09 a5 20 43 68 65 | 63 6b 20 61 6c 6c 20 70 |:... Che|ck all p|
|000053f0| 65 72 74 69 6e 65 6e 74 | 20 63 61 6c 6c 73 20 66 |ertinent| calls f|
|00005400| 6f 72 20 65 72 72 6f 72 | 73 20 0d 09 a5 20 41 6c |or error|s ... Al|
|00005410| 77 61 79 73 20 77 72 69 | 74 65 20 64 65 66 65 6e |ways wri|te defen|
|00005420| 73 69 76 65 20 63 6f 64 | 65 20 0d 44 6f 6e d5 74 |sive cod|e .Don.t|
|00005430| 20 61 63 63 65 73 73 20 | 68 61 72 64 77 61 72 65 | access |hardware|
|00005440| 20 64 69 72 65 63 74 6c | 79 0d 54 6f 20 61 76 6f | directl|y.To avo|
|00005450| 69 64 20 68 61 72 64 77 | 61 72 65 2d 72 65 6c 61 |id hardw|are-rela|
|00005460| 74 65 64 20 69 6e 63 6f | 6d 70 61 74 69 62 69 6c |ted inco|mpatibil|
|00005470| 69 74 69 65 73 3a 0d 09 | a5 20 44 6f 6e d5 74 20 |ities:..|. Don.t |
|00005480| 72 65 61 64 20 6f 72 20 | 77 72 69 74 65 20 74 68 |read or |write th|
|00005490| 65 20 68 61 72 64 77 61 | 72 65 0d 09 a5 20 49 66 |e hardwa|re... If|
|000054a0| 20 79 6f 75 20 63 61 6e | d5 74 20 67 65 74 20 74 | you can|.t get t|
|000054b0| 68 65 20 73 75 70 70 6f | 72 74 20 66 72 6f 6d 20 |he suppo|rt from |
|000054c0| 74 68 65 20 52 4f 4d 2c | 20 61 73 6b 20 74 68 65 |the ROM,| ask the|
|000054d0| 20 73 79 73 74 65 6d 20 | 77 68 65 72 65 20 74 68 | system |where th|
|000054e0| 65 20 68 61 72 64 77 61 | 72 65 20 69 73 0d 09 a5 |e hardwa|re is...|
|000054f0| 20 55 73 65 20 6c 6f 77 | 2d 6d 65 6d 6f 72 79 20 | Use low|-memory |
|00005500| 67 6c 6f 62 61 6c 73 0d | 44 6f 6e d5 74 20 75 73 |globals.|Don.t us|
|00005510| 65 20 62 69 74 73 20 74 | 68 61 74 20 61 72 65 20 |e bits t|hat are |
|00005520| 72 65 73 65 72 76 65 64 | 0d 54 6f 20 61 76 6f 69 |reserved|.To avoi|
|00005530| 64 20 63 6f 6d 70 61 74 | 69 62 69 6c 69 74 79 20 |d compat|ibility |
|00005540| 70 72 6f 62 6c 65 6d 73 | 20 77 68 65 6e 20 62 69 |problems| when bi|
|00005550| 74 20 73 74 61 74 75 73 | 20 63 68 61 6e 67 65 73 |t status| changes|
|00005560| 3a 0d 09 a5 20 44 6f 6e | d5 74 20 75 73 65 20 75 |:... Don|.t use u|
|00005570| 6e 64 6f 63 75 6d 65 6e | 74 65 64 20 73 74 75 66 |ndocumen|ted stuf|
|00005580| 66 0d 09 a5 20 57 68 65 | 6e 20 75 73 69 6e 67 20 |f... Whe|n using |
|00005590| 6c 6f 77 2d 6d 65 6d 6f | 72 79 20 67 6c 6f 62 61 |low-memo|ry globa|
|000055a0| 6c 73 2c 20 63 68 65 63 | 6b 20 6f 6e 6c 79 20 77 |ls, chec|k only w|
|000055b0| 68 61 74 20 79 6f 75 20 | 77 61 6e 74 20 74 6f 20 |hat you |want to |
|000055c0| 6b 6e 6f 77 0d 53 75 6d | 6d 61 72 79 0d 4d 69 6e |know.Sum|mary.Min|
|000055d0| 6f 72 20 62 75 67 73 20 | 61 72 65 20 67 65 74 74 |or bugs |are gett|
|000055e0| 69 6e 67 20 68 61 72 64 | 65 72 20 61 6e 64 20 68 |ing hard|er and h|
|000055f0| 61 72 64 65 72 20 74 6f | 20 67 65 74 20 61 77 61 |arder to| get awa|
|00005600| 79 20 77 69 74 68 3a 0d | 09 a5 20 47 6f 6f 64 20 |y with:.|.. Good |
|00005610| 6c 75 63 6b 0d 09 a5 20 | 57 65 d5 6c 6c 20 68 65 |luck... |We.ll he|
|00005620| 6c 70 0d 09 a5 20 41 70 | 70 6c 65 4c 69 6e 6b 3a |lp... Ap|pleLink:|
|00005630| 20 4d 61 63 44 54 53 2c | 20 4d 43 49 3a 20 4d 61 | MacDTS,| MCI: Ma|
|00005640| 63 44 54 53 0d 09 a5 20 | 55 2e 53 2e 20 4d 61 69 |cDTS... |U.S. Mai|
|00005650| 6c 3a 20 32 30 35 32 35 | 20 4d 61 72 69 61 6e 69 |l: 20525| Mariani|
|00005660| 20 41 76 65 2e 3b 20 4d | 2f 53 20 32 37 2d 54 3b | Ave.; M|/S 27-T;|
|00005670| 20 43 75 70 65 72 74 69 | 6e 6f 2c 20 43 41 20 39 | Cuperti|no, CA 9|
|00005680| 35 30 31 34 0d 57 68 61 | 74 20 69 74 20 49 73 0d |5014.Wha|t it Is.|
|00005690| 54 68 65 20 62 61 73 69 | 63 20 69 64 65 61 20 69 |The basi|c idea i|
|000056a0| 73 20 74 6f 20 6d 61 6b | 65 20 73 75 72 65 20 74 |s to mak|e sure t|
|000056b0| 68 61 74 20 79 6f 75 72 | 20 70 72 6f 67 72 61 6d |hat your| program|
|000056c0| 73 20 77 69 6c 6c 20 72 | 75 6e 2c 20 72 65 67 61 |s will r|un, rega|
|000056d0| 72 64 6c 65 73 73 20 6f | 66 20 77 68 69 63 68 20 |rdless o|f which |
|000056e0| 4d 61 63 69 6e 74 6f 73 | 68 20 74 68 65 79 20 61 |Macintos|h they a|
|000056f0| 72 65 20 62 65 69 6e 67 | 20 72 75 6e 20 6f 6e 2e |re being| run on.|
|00005700| 20 54 68 65 20 63 75 72 | 72 65 6e 74 20 73 79 73 | The cur|rent sys|
|00005710| 74 65 6d 73 20 74 6f 20 | 62 65 20 63 6f 6e 63 65 |tems to |be conce|
|00005720| 72 6e 65 64 20 77 69 74 | 68 20 69 6e 63 6c 75 64 |rned wit|h includ|
|00005730| 65 3a 0d 09 a5 20 4d 61 | 63 69 6e 74 6f 73 68 20 |e:... Ma|cintosh |
|00005740| 31 32 38 4b 09 a5 20 4d | 61 63 69 6e 74 6f 73 68 |128K.. M|acintosh|
|00005750| 20 35 31 32 4b 65 0d 09 | a5 20 4d 61 63 69 6e 74 | 512Ke..|. Macint|
|00005760| 6f 73 68 20 35 31 32 4b | 09 a5 20 4d 61 63 69 6e |osh 512K|.. Macin|
|00005770| 74 6f 73 68 20 50 6c 75 | 73 0d 09 a5 20 4d 61 63 |tosh Plu|s... Mac|
|00005780| 69 6e 74 6f 73 68 20 58 | 4c 09 a5 20 4d 61 63 69 |intosh X|L.. Maci|
|00005790| 6e 74 6f 73 68 20 53 45 | 0d 09 a5 20 4d 61 63 69 |ntosh SE|... Maci|
|000057a0| 6e 74 6f 73 68 20 49 49 | 0d 49 66 20 79 6f 75 20 |ntosh II|.If you |
|000057b0| 70 65 72 66 6f 72 6d 20 | 6f 70 65 72 61 74 69 6f |perform |operatio|
|000057c0| 6e 73 20 69 6e 20 61 20 | 67 65 6e 65 72 69 63 20 |ns in a |generic |
|000057d0| 66 61 73 68 69 6f 6e 2c | 20 74 68 65 72 65 20 69 |fashion,| there i|
|000057e0| 73 20 72 61 72 65 6c 79 | 20 61 6e 79 20 72 65 61 |s rarely| any rea|
|000057f0| 73 6f 6e 20 74 6f 20 6b | 6e 6f 77 20 77 68 61 74 |son to k|now what|
|00005800| 20 6d 61 63 68 69 6e 65 | 20 69 73 20 72 75 6e 6e | machine| is runn|
|00005810| 69 6e 67 2e 20 54 68 69 | 73 20 6d 65 61 6e 73 20 |ing. Thi|s means |
|00005820| 74 68 61 74 20 79 6f 75 | 20 73 68 6f 75 6c 64 20 |that you| should |
|00005830| 61 76 6f 69 64 20 77 72 | 69 74 69 6e 67 20 63 6f |avoid wr|iting co|
|00005840| 64 65 20 74 6f 20 64 65 | 74 65 72 6d 69 6e 65 20 |de to de|termine |
|00005850| 77 68 69 63 68 20 76 65 | 72 73 69 6f 6e 20 6f 66 |which ve|rsion of|
|00005860| 20 74 68 65 20 6d 61 63 | 68 69 6e 65 20 79 6f 75 | the mac|hine you|
|00005870| 20 61 72 65 20 72 75 6e | 6e 69 6e 67 20 6f 6e 2c | are run|ning on,|
|00005880| 20 75 6e 6c 65 73 73 20 | 69 74 20 69 73 20 61 62 | unless |it is ab|
|00005890| 73 6f 6c 75 74 65 6c 79 | 20 6e 65 63 65 73 73 61 |solutely| necessa|
|000058a0| 72 79 2e 0d 46 6f 72 20 | 74 68 65 20 70 75 72 70 |ry..For |the purp|
|000058b0| 6f 73 65 73 20 6f 66 20 | 74 68 69 73 20 64 69 73 |oses of |this dis|
|000058c0| 63 75 73 73 69 6f 6e 2c | 20 74 68 65 20 74 65 72 |cussion,| the ter|
|000058d0| 6d 20 d2 70 72 6f 67 72 | 61 6d 73 d3 20 77 69 6c |m .progr|ams. wil|
|000058e0| 6c 20 62 65 20 75 73 65 | 64 20 74 6f 20 64 65 73 |l be use|d to des|
|000058f0| 63 72 69 62 65 20 61 6e | 79 20 63 6f 64 65 20 74 |cribe an|y code t|
|00005900| 68 61 74 20 72 75 6e 73 | 20 6f 6e 20 61 20 4d 61 |hat runs| on a Ma|
|00005910| 63 69 6e 74 6f 73 68 2e | 20 54 68 69 73 20 69 6e |cintosh.| This in|
|00005920| 63 6c 75 64 65 73 20 61 | 70 70 6c 69 63 61 74 69 |cludes a|pplicati|
|00005930| 6f 6e 73 2c 20 49 4e 49 | 54 73 2c 20 46 4b 45 59 |ons, INI|Ts, FKEY|
|00005940| 73 2c 20 44 65 73 6b 20 | 41 63 63 65 73 73 6f 72 |s, Desk |Accessor|
|00005950| 69 65 73 20 61 6e 64 20 | 44 72 69 76 65 72 73 2e |ies and |Drivers.|
|00005960| 0d 57 68 61 74 20 74 68 | 65 20 d2 52 75 6c 65 73 |.What th|e .Rules|
|00005970| d3 20 6d 65 61 6e 0d 43 | 6f 6d 70 61 74 69 62 69 |. mean.C|ompatibi|
|00005980| 6c 69 74 79 20 61 63 72 | 6f 73 73 20 61 6c 6c 20 |lity acr|oss all |
|00005990| 4d 61 63 69 6e 74 6f 73 | 68 20 63 6f 6d 70 75 74 |Macintos|h comput|
|000059a0| 65 72 73 20 28 77 68 69 | 63 68 20 6d 61 79 20 73 |ers (whi|ch may s|
|000059b0| 6f 75 6e 64 20 6c 69 6b | 65 20 69 74 20 69 6e 76 |ound lik|e it inv|
|000059c0| 6f 6c 76 65 73 20 6d 6f | 72 65 20 77 6f 72 6b 20 |olves mo|re work |
|000059d0| 66 6f 72 20 79 6f 75 29 | 20 6d 61 79 20 61 63 74 |for you)| may act|
|000059e0| 75 61 6c 6c 79 20 6d 65 | 61 6e 20 74 68 61 74 20 |ually me|an that |
|000059f0| 79 6f 75 20 68 61 76 65 | 20 6c 65 73 73 20 77 6f |you have| less wo|
|00005a00| 72 6b 20 74 6f 20 64 6f | 2c 20 73 69 6e 63 65 20 |rk to do|, since |
|00005a10| 69 74 20 6d 61 79 20 6e | 6f 74 20 62 65 20 6e 65 |it may n|ot be ne|
|00005a20| 63 65 73 73 61 72 79 20 | 74 6f 20 72 65 76 69 73 |cessary |to revis|
|00005a30| 65 20 79 6f 75 72 20 70 | 72 6f 67 72 61 6d 20 65 |e your p|rogram e|
|00005a40| 61 63 68 20 74 69 6d 65 | 20 41 70 70 6c 65 20 62 |ach time| Apple b|
|00005a50| 72 69 6e 67 73 20 6f 75 | 74 20 61 20 6e 65 77 20 |rings ou|t a new |
|00005a60| 63 6f 6d 70 75 74 65 72 | 20 6f 72 20 53 79 73 74 |computer| or Syst|
|00005a70| 65 6d 20 66 69 6c 65 2e | 20 55 73 65 72 73 2c 20 |em file.| Users, |
|00005a80| 61 73 20 61 20 67 72 6f | 75 70 2c 20 64 6f 20 6e |as a gro|up, do n|
|00005a90| 6f 74 20 75 6e 64 65 72 | 73 74 61 6e 64 20 63 6f |ot under|stand co|
|00005aa0| 6d 70 61 74 69 62 69 6c | 69 74 79 20 70 72 6f 62 |mpatibil|ity prob|
|00005ab0| 6c 65 6d 73 3b 20 61 6c | 6c 20 74 68 65 79 20 73 |lems; al|l they s|
|00005ac0| 65 65 20 69 73 20 74 68 | 61 74 20 74 68 65 20 70 |ee is th|at the p|
|00005ad0| 72 6f 67 72 61 6d 20 64 | 6f 65 73 20 6e 6f 74 20 |rogram d|oes not |
|00005ae0| 72 75 6e 20 6f 6e 20 74 | 68 65 69 72 20 73 79 73 |run on t|heir sys|
|00005af0| 74 65 6d 2e 0d 54 68 65 | 20 62 65 6e 65 66 69 74 |tem..The| benefit|
|00005b00| 73 20 6f 66 20 62 65 69 | 6e 67 20 63 6f 6d 70 61 |s of bei|ng compa|
|00005b10| 74 69 62 6c 65 20 61 72 | 65 20 6d 61 6e 79 2d 66 |tible ar|e many-f|
|00005b20| 6f 6c 64 3a 20 79 6f 75 | 72 20 63 75 73 74 6f 6d |old: you|r custom|
|00005b30| 65 72 73 2f 75 73 65 72 | 73 20 73 74 61 79 20 68 |ers/user|s stay h|
|00005b40| 61 70 70 79 2c 20 79 6f | 75 20 68 61 76 65 20 6c |appy, yo|u have l|
|00005b50| 65 73 73 20 70 72 6f 67 | 72 61 6d 6d 69 6e 67 20 |ess prog|ramming |
|00005b60| 74 6f 20 64 6f 2c 20 79 | 6f 75 20 63 61 6e 20 64 |to do, y|ou can d|
|00005b70| 65 76 6f 74 65 20 79 6f | 75 72 20 74 69 6d 65 20 |evote yo|ur time |
|00005b80| 74 6f 20 6d 6f 72 65 20 | 76 61 6c 75 61 62 6c 65 |to more |valuable|
|00005b90| 20 67 6f 61 6c 73 2c 20 | 74 68 65 72 65 20 61 72 | goals, |there ar|
|00005ba0| 65 20 66 65 77 65 72 20 | 76 65 72 73 69 6f 6e 73 |e fewer |versions|
|00005bb0| 20 74 6f 20 64 65 61 6c | 20 77 69 74 68 2c 20 79 | to deal| with, y|
|00005bc0| 6f 75 72 20 63 6f 64 65 | 20 77 69 6c 6c 20 70 72 |our code| will pr|
|00005bd0| 6f 62 61 62 6c 79 20 62 | 65 20 6d 6f 72 65 20 65 |obably b|e more e|
|00005be0| 66 66 69 63 69 65 6e 74 | 2c 20 79 6f 75 72 20 75 |fficient|, your u|
|00005bf0| 73 65 72 73 20 77 69 6c | 6c 20 6e 6f 74 20 63 75 |sers wil|l not cu|
|00005c00| 72 73 65 20 79 6f 75 20 | 75 6e 64 65 72 20 74 68 |rse you |under th|
|00005c10| 65 69 72 20 62 72 65 61 | 74 68 2c 20 61 6e 64 20 |eir brea|th, and |
|00005c20| 79 6f 75 72 20 6f 75 74 | 6c 6f 6f 6b 20 6f 6e 20 |your out|look on |
|00005c30| 6c 69 66 65 20 77 69 6c | 6c 20 62 65 20 6d 75 63 |life wil|l be muc|
|00005c40| 68 20 6d 65 72 72 69 65 | 72 2e 0d 4e 6f 77 20 74 |h merrie|r..Now t|
|00005c50| 68 61 74 20 77 65 20 6b | 6e 6f 77 20 77 68 61 74 |hat we k|now what|
|00005c60| 20 62 65 69 6e 67 20 63 | 6f 6d 70 61 74 69 62 6c | being c|ompatibl|
|00005c70| 65 20 69 73 20 61 6c 6c | 20 61 62 6f 75 74 2c 20 |e is all| about, |
|00005c80| 72 65 63 6f 67 6e 69 7a | 65 20 74 68 61 74 20 6e |recogniz|e that n|
|00005c90| 6f 62 6f 64 79 20 69 73 | 20 72 65 71 75 69 72 69 |obody is| requiri|
|00005ca0| 6e 67 20 79 6f 75 20 74 | 6f 20 62 65 20 63 6f 6d |ng you t|o be com|
|00005cb0| 70 61 74 69 62 6c 65 20 | 77 69 74 68 20 61 6e 79 |patible |with any|
|00005cc0| 74 68 69 6e 67 2e 20 41 | 70 70 6c 65 20 64 6f 65 |thing. A|pple doe|
|00005cd0| 73 20 6e 6f 74 20 65 6d | 70 6c 6f 79 20 72 6f 76 |s not em|ploy rov|
|00005ce0| 69 6e 67 20 67 61 6e 67 | 73 20 6f 66 20 74 68 6f |ing gang|s of tho|
|00005cf0| 75 67 68 74 20 70 6f 6c | 69 63 65 20 74 6f 20 62 |ught pol|ice to b|
|00005d00| 65 20 73 75 72 65 20 74 | 68 61 74 20 64 65 76 65 |e sure t|hat deve|
|00005d10| 6c 6f 70 65 72 73 20 61 | 72 65 20 66 6f 6c 6c 6f |lopers a|re follo|
|00005d20| 77 69 6e 67 20 74 68 65 | 20 72 65 63 6f 6d 6d 65 |wing the| recomme|
|00005d30| 6e 64 65 64 20 67 75 69 | 64 65 6c 69 6e 65 73 2e |nded gui|delines.|
|00005d40| 20 46 75 72 74 68 65 72 | 6d 6f 72 65 2c 20 77 68 | Further|more, wh|
|00005d50| 65 6e 20 74 68 65 20 67 | 75 69 64 65 6c 69 6e 65 |en the g|uideline|
|00005d60| 73 20 63 6f 6d 70 72 69 | 73 65 20 31 32 30 30 20 |s compri|se 1200 |
|00005d70| 70 61 67 65 73 20 6f 66 | 20 74 75 72 67 69 64 20 |pages of| turgid |
|00005d80| 70 72 6f 73 65 20 28 49 | 6e 73 69 64 65 20 4d 61 |prose (I|nside Ma|
|00005d90| 63 69 6e 74 6f 73 68 29 | 2c 20 79 6f 75 20 63 61 |cintosh)|, you ca|
|00005da0| 6e 20 62 65 20 65 78 70 | 65 63 74 65 64 20 74 6f |n be exp|ected to|
|00005db0| 20 6d 69 73 73 20 6f 6e | 65 20 6f 72 20 74 77 6f | miss on|e or two|
|00005dc0| 20 6f 66 20 74 68 65 20 | d2 72 75 6c 65 73 2e d3 | of the |.rules..|
|00005dd0| 20 49 74 20 69 73 20 6e | 6f 20 73 69 6e 20 74 6f | It is n|o sin to|
|00005de0| 20 62 65 20 69 6e 63 6f | 6d 70 61 74 69 62 6c 65 | be inco|mpatible|
|00005df0| 2c 20 6e 6f 72 20 69 73 | 20 69 74 20 61 20 70 75 |, nor is| it a pu|
|00005e00| 6e 69 73 68 61 62 6c 65 | 20 6f 66 66 65 6e 73 65 |nishable| offense|
|00005e10| 2e 20 49 66 20 69 74 20 | 77 65 72 65 2c 20 74 68 |. If it |were, th|
|00005e20| 65 72 65 20 77 6f 75 6c | 64 20 62 65 20 6e 6f 20 |ere woul|d be no |
|00005e30| 4d 61 63 69 6e 74 6f 73 | 68 20 70 72 6f 67 72 61 |Macintos|h progra|
|00005e40| 6d 73 2c 20 73 69 6e 63 | 65 20 76 69 72 74 75 61 |ms, sinc|e virtua|
|00005e50| 6c 6c 79 20 61 6c 6c 20 | 64 65 76 65 6c 6f 70 65 |lly all |develope|
|00005e60| 72 73 20 77 6f 75 6c 64 | 20 62 65 20 69 6e 63 61 |rs would| be inca|
|00005e70| 72 63 65 72 61 74 65 64 | 2e 20 57 68 61 74 20 69 |rcerated|. What i|
|00005e80| 74 20 64 6f 65 73 20 6d | 65 61 6e 2c 20 68 6f 77 |t does m|ean, how|
|00005e90| 65 76 65 72 2c 20 69 73 | 20 74 68 61 74 20 79 6f |ever, is| that yo|
|00005ea0| 75 72 20 70 72 6f 67 72 | 61 6d 20 77 69 6c 6c 20 |ur progr|am will |
|00005eb0| 62 65 20 75 6e 66 61 76 | 6f 72 61 62 6c 79 20 76 |be unfav|orably v|
|00005ec0| 69 65 77 65 64 20 75 6e | 74 69 6c 20 69 74 20 73 |iewed un|til it s|
|00005ed0| 74 65 70 73 20 69 6e 20 | 6c 69 6e 65 20 77 69 74 |teps in |line wit|
|00005ee0| 68 20 74 68 65 20 63 75 | 72 72 65 6e 74 20 73 79 |h the cu|rrent sy|
|00005ef0| 73 74 65 6d 20 28 77 68 | 69 63 68 20 69 73 20 61 |stem (wh|ich is a|
|00005f00| 20 6d 6f 76 69 6e 67 20 | 74 61 72 67 65 74 29 2e | moving |target).|
|00005f10| 20 49 66 20 61 20 70 72 | 6f 67 72 61 6d 20 62 65 | If a pr|ogram be|
|00005f20| 63 6f 6d 65 73 20 69 6e | 63 6f 6d 70 61 74 69 62 |comes in|compatib|
|00005f30| 6c 65 20 77 69 74 68 20 | 61 20 6e 65 77 20 4d 61 |le with |a new Ma|
|00005f40| 63 69 6e 74 6f 73 68 2c | 20 69 74 20 75 73 75 61 |cintosh,| it usua|
|00005f50| 6c 6c 79 20 72 65 71 75 | 69 72 65 73 20 72 65 74 |lly requ|ires ret|
|00005f60| 68 69 6e 6b 69 6e 67 20 | 74 68 65 20 6f 66 66 65 |hinking |the offe|
|00005f70| 6e 64 69 6e 67 20 63 6f | 64 65 2c 20 61 6e 64 20 |nding co|de, and |
|00005f80| 72 65 6c 65 61 73 69 6e | 67 20 61 20 6e 65 77 20 |releasin|g a new |
|00005f90| 76 65 72 73 69 6f 6e 2e | 20 59 6f 75 20 6d 61 79 |version.| You may|
|00005fa0| 20 72 65 61 64 20 73 6f | 6d 65 74 68 69 6e 67 20 | read so|mething |
|00005fb0| 6c 69 6b 65 20 d2 49 66 | 20 74 68 65 20 64 65 76 |like .If| the dev|
|00005fc0| 65 6c 6f 70 65 72 73 20 | 66 6f 6c 6c 6f 77 65 64 |elopers |followed|
|00005fd0| 20 41 70 70 6c 65 20 67 | 75 69 64 65 6c 69 6e 65 | Apple g|uideline|
|00005fe0| 73 2c 20 74 68 65 79 20 | 77 6f 75 6c 64 20 62 65 |s, they |would be|
|00005ff0| 20 63 6f 6d 70 61 74 69 | 62 6c 65 20 77 69 74 68 | compati|ble with|
|00006000| 20 74 68 65 20 74 72 61 | 6e 73 76 65 72 73 65 2d | the tra|nsverse-|
|00006010| 68 69 6e 67 65 64 20 64 | 69 61 74 6f 6d 69 63 20 |hinged d|iatomic |
|00006020| 71 75 61 72 6b 20 72 65 | 61 6c 69 67 6e 6d 65 6e |quark re|alignmen|
|00006030| 74 20 73 79 73 74 65 6d | 2e d3 20 54 68 69 73 20 |t system|.. This |
|00006040| 6d 65 61 6e 73 20 74 68 | 61 74 20 69 66 20 79 6f |means th|at if yo|
|00006050| 75 20 6d 61 64 65 20 61 | 6e 79 20 6d 69 73 74 61 |u made a|ny mista|
|00006060| 6b 65 73 20 28 79 6f 75 | 20 72 65 61 64 20 61 6c |kes (you| read al|
|00006070| 6c 20 31 32 30 30 20 70 | 61 67 65 73 20 63 61 72 |l 1200 p|ages car|
|00006080| 65 66 75 6c 6c 79 2c 20 | 72 69 67 68 74 3f 29 2c |efully, |right?),|
|00006090| 20 79 6f 75 20 77 69 6c | 6c 20 6e 6f 74 20 62 65 | you wil|l not be|
|000060a0| 20 63 6f 6d 70 61 74 69 | 62 6c 65 2e 20 49 74 20 | compati|ble. It |
|000060b0| 69 73 20 65 78 74 72 65 | 6d 65 6c 79 20 64 69 66 |is extre|mely dif|
|000060c0| 66 69 63 75 6c 74 20 74 | 6f 20 72 65 6d 61 69 6e |ficult t|o remain|
|000060d0| 20 63 6f 6d 70 6c 65 74 | 65 6c 79 20 63 6f 6d 70 | complet|ely comp|
|000060e0| 61 74 69 62 6c 65 2c 20 | 70 61 72 74 69 63 75 6c |atible, |particul|
|000060f0| 61 72 6c 79 20 69 6e 20 | 61 20 73 79 73 74 65 6d |arly in |a system|
|00006100| 20 61 73 20 63 6f 6d 70 | 6c 65 78 20 61 73 20 74 | as comp|lex as t|
|00006110| 68 65 20 4d 61 63 69 6e | 74 6f 73 68 2e 20 54 68 |he Macin|tosh. Th|
|00006120| 65 20 72 75 6c 65 73 20 | 68 61 76 65 6e d5 74 20 |e rules |haven.t |
|00006130| 63 68 61 6e 67 65 64 2c | 20 62 75 74 20 77 68 61 |changed,| but wha|
|00006140| 74 20 79 6f 75 20 63 61 | 6e 20 67 65 74 20 61 77 |t you ca|n get aw|
|00006150| 61 79 20 77 69 74 68 20 | 68 61 73 2e 20 54 68 65 |ay with |has. The|
|00006160| 72 65 20 61 72 65 2c 20 | 68 6f 77 65 76 65 72 2c |re are, |however,|
|00006170| 20 61 20 6e 75 6d 62 65 | 72 20 6f 66 20 74 68 69 | a numbe|r of thi|
|00006180| 6e 67 73 20 74 68 61 74 | 20 79 6f 75 20 63 61 6e |ngs that| you can|
|00006190| 20 64 6f 20 74 6f 20 69 | 6d 70 72 6f 76 65 20 79 | do to i|mprove y|
|000061a0| 6f 75 72 20 6f 64 64 73 | d1 73 6f 6d 65 20 6f 66 |our odds|.some of|
|000061b0| 20 77 68 69 63 68 20 77 | 69 6c 6c 20 62 65 20 65 | which w|ill be e|
|000061c0| 78 70 6c 61 69 6e 65 64 | 20 68 65 72 65 2e 0d 49 |xplained| here..I|
|000061d0| 74 d5 73 20 79 6f 75 72 | 20 63 68 6f 69 63 65 0d |t.s your| choice.|
|000061e0| 49 74 20 69 73 20 73 74 | 69 6c 6c 20 79 6f 75 72 |It is st|ill your|
|000061f0| 20 63 68 6f 69 63 65 20 | 77 68 65 74 68 65 72 20 | choice |whether |
|00006200| 79 6f 75 20 77 69 6c 6c | 20 62 65 20 63 6f 6e 63 |you will| be conc|
|00006210| 65 72 6e 65 64 20 77 69 | 74 68 20 63 6f 6d 70 61 |erned wi|th compa|
|00006220| 74 69 62 69 6c 69 74 79 | 20 6f 72 20 6e 6f 74 2e |tibility| or not.|
|00006230| 20 41 70 70 6c 65 20 77 | 69 6c 6c 20 6e 6f 74 20 | Apple w|ill not |
|00006240| 70 75 74 20 6f 75 74 20 | 61 20 77 61 72 72 61 6e |put out |a warran|
|00006250| 74 20 66 6f 72 20 79 6f | 75 72 20 61 72 72 65 73 |t for yo|ur arres|
|00006260| 74 2e 20 48 6f 77 65 76 | 65 72 2c 20 69 66 20 79 |t. Howev|er, if y|
|00006270| 6f 75 20 61 72 65 20 64 | 6f 69 6e 67 20 74 68 69 |ou are d|oing thi|
|00006280| 6e 67 73 20 74 68 61 74 | 20 61 72 65 20 73 70 65 |ngs that| are spe|
|00006290| 63 69 66 69 63 61 6c 6c | 79 20 69 6c 6c 65 67 61 |cificall|y illega|
|000062a0| 6c 2c 20 41 70 70 6c 65 | 20 77 69 6c 6c 20 61 6c |l, Apple| will al|
|000062b0| 73 6f 20 6e 6f 74 20 77 | 6f 72 72 79 20 61 62 6f |so not w|orry abo|
|000062c0| 75 74 20 d2 62 72 65 61 | 6b 69 6e 67 d3 20 79 6f |ut .brea|king. yo|
|000062d0| 75 72 20 70 72 6f 67 72 | 61 6d 2e 0d 42 61 64 20 |ur progr|am..Bad |
|000062e0| 54 68 69 6e 67 73 0d 54 | 68 65 20 66 6f 6c 6c 6f |Things.T|he follo|
|000062f0| 77 69 6e 67 20 6c 69 73 | 74 20 69 73 20 6e 6f 74 |wing lis|t is not|
|00006300| 20 69 6e 74 65 6e 64 65 | 64 20 74 6f 20 62 65 20 | intende|d to be |
|00006310| 63 6f 6d 70 72 65 68 65 | 6e 73 69 76 65 2c 20 62 |comprehe|nsive, b|
|00006320| 75 74 20 74 68 65 73 65 | 20 61 72 65 20 74 68 65 |ut these| are the|
|00006330| 20 70 72 69 6d 61 72 79 | 20 72 65 61 73 6f 6e 73 | primary| reasons|
|00006340| 20 77 68 79 20 70 72 6f | 67 72 61 6d 73 20 62 72 | why pro|grams br|
|00006350| 65 61 6b 20 66 72 6f 6d | 20 6f 6e 65 20 76 65 72 |eak from| one ver|
|00006360| 73 69 6f 6e 20 6f 66 20 | 74 68 65 20 73 79 73 74 |sion of |the syst|
|00006370| 65 6d 20 74 6f 20 74 68 | 65 20 6e 65 78 74 2e 20 |em to th|e next. |
|00006380| 54 68 65 73 65 20 61 72 | 65 20 74 68 65 20 63 75 |These ar|e the cu|
|00006390| 72 72 65 6e 74 20 74 6f | 70 20 74 65 6e 20 63 6f |rrent to|p ten co|
|000063a0| 6d 6d 61 6e 64 6d 65 6e | 74 73 3a 0d 49 09 54 68 |mmandmen|ts:.I.Th|
|000063b0| 6f 75 20 73 68 61 6c 74 | 20 6e 6f 74 20 61 73 73 |ou shalt| not ass|
|000063c0| 75 6d 65 20 74 68 65 20 | 73 63 72 65 65 6e 20 69 |ume the |screen i|
|000063d0| 73 20 61 20 66 69 78 65 | 64 20 73 69 7a 65 2e 0d |s a fixe|d size..|
|000063e0| 49 49 09 54 68 6f 75 20 | 73 68 61 6c 74 20 6e 6f |II.Thou |shalt no|
|000063f0| 74 20 61 73 73 75 6d 65 | 20 74 68 65 20 73 63 72 |t assume| the scr|
+--------+-------------------------+-------------------------+--------+--------+
Only 25.0 KB of data is shown above.